Git Product home page Git Product logo

Comments (5)

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

Aaaah that's most likely due to me removing a localhost exception in Info.plist when I built the app for deployment.

Included it back in (f471f04) - I'll remember to remove it locally before I deploy the next update.

from git-point.

machour avatar machour commented on July 29, 2024

Facing the exact same error message today.

Reproduce case:

git clone [email protected]:gitpoint/git-point.git git-point-orig
cd git-point-orig
yarn && yarn run link && yarn start:ios

None of the provided troubleshooting options provided in CONTRIBUTING.md did the trick for me.

The localhost exception is present in Info.plist

Environment infos:

๐Ÿบ  ~/git-point-orig (master)*$ node --version
v8.1.3
๐Ÿบ  ~/git-point-orig (master)*$ npm --version
5.0.3
๐Ÿบ  ~/git-point-orig (master)*$ yarn --version
0.27.5
๐Ÿบ  ~/git-point-orig (master)*$ react-native --version
react-native-cli: 2.0.1
react-native: 0.46.2
The app is loaded in a simulator with the following specs: iPhone 6 - iOS 10.3
Running all this on a MacBook Pro (15-inch, 2016) with OsX 10.12.6

Let me know if I can provide more details

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

@machour are you still having trouble with iOS and have only been able to test on Android? Please let me know and we'll reopen this. Apologies if we didn't get to the bottom of this in our gitter chat but I can't recall if we have ๐Ÿค”

from git-point.

machour avatar machour commented on July 29, 2024

Just did a fresh checkout and hit the same issue again: "No bundle URL is present".
This is the case when running "yarn start:ios" or "yarn start -- --reset-cache" and then yarn run ios in a another terminal window

๐Ÿบ  ~/git-point (master)*$ yarn --version
0.27.5
๐Ÿบ  ~/git-point (master)*$ npm --version
5.3.0
๐Ÿบ  ~/git-point (master)*$ node --version
v8.4.0

from git-point.

machour avatar machour commented on July 29, 2024

I did some further digging, starting with a fresh repo and XCode, here's what I've noticed:

  • when running yarn start:ios, the ios/GitPoint/main.jsbundle file doesn't get generated. Is that normal ?
  • I'm able to generate that file using react-native bundle --entry-file='index.ios.js' --bundle-output='./ios/GitPoint/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios', but I'm not sure it's needed
  • I'm able to run the app on the iOS Simulator by hardcoding the URL and building from XCode:
--- AppDelegate.m	2017-09-08 13:14:40.000000000 +0100
+++ AppDelegate.patched	2017-09-08 13:14:34.000000000 +0100
@@ -22,7 +22,7 @@


 #ifdef DEBUG
-  jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
+  jsCodeLocation = [NSURL URLWithString:@"http://192.168.1.2:8081/index.ios.bundle"];
 #else
   jsCodeLocation = [CodePush bundleURL];
 #endif
  • with that hardcoded url, and toggling "Enable live reload" everything works as expected

from git-point.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.