Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues iOS on develop branch #10

Closed
wrobbler opened this issue Feb 12, 2019 · 1 comment
Closed

Build issues iOS on develop branch #10

wrobbler opened this issue Feb 12, 2019 · 1 comment
Labels

Comments

@wrobbler
Copy link
Collaborator

wrobbler commented Feb 12, 2019

Currently the development branch doesn't build for iOS
There are multiple causes for this, like the dependencies itself as well as the new buld engine from Xcode 10

There are multiple issues:

  • App has to be renamed to "ViroSample" in the package.json

  • iOS folder with Podfile is missing in repo

    • add folder, then run sh setup-ide.sh --ios
    • go to ios folder and run pod update and pod install
  • The current version of react-native has issues with third-party / firebase

  • First build fails due to an error with the glog dependency in /node_modules/react-native/third-party since the third-party folder doesn't exist. After first failed build it should be present but might not show up, because Xcode doesn't recognize it

    • Clean Project in Xcode and build again
  • Now there will be an error in demangle.h from third-party, because the included config.h could not be found

    • rm -rf node_modules
    • npm cache verify
    • npm i
    • run node_modules/react-native/scripts/ios-install-third-party.sh
      (* now build again in Xcode to get third-party folder)
    • go to node_modules/react-native/third-party/glog-0.3.4/ and run ./configure
    • clean project and build again
  • Next error will be libfishhook.a from RCTWebSocket not found

  • Next runner up: Firebase.h not found from RNFirebaseUtil.h

    • close Xcode

I wasn't able to resolve the issue yet.

@wrobbler wrobbler added the iOS label Feb 12, 2019
@wrobbler
Copy link
Collaborator Author

Latest commit fixes the build issues. Resolved by setting up a clean viro/react-native project and merging with current project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant