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

Not support React Native 0.6 or higher. #127

Open
CoinGoblin07 opened this issue Aug 12, 2019 · 4 comments
Open

Not support React Native 0.6 or higher. #127

CoinGoblin07 opened this issue Aug 12, 2019 · 4 comments

Comments

@CoinGoblin07
Copy link

React Native 0.6 has been changed to CocoaPods integration by default.

react-native-unity-view 1.3.3 not supports that. (lots of errors.)

Do you have an update plan?

@mtostenson
Copy link

We've been using this in a cocoapods project with react native 0.8+. If you provide more specifics about your issue we might be able to help out.

@alisherakb
Copy link

alisherakb commented Aug 19, 2019

We've been using this in a cocoapods project with react native 0.8+. If you provide more specifics about your issue we might be able to help out.

Description

@mtostenson I have clean react-native: 0.60.4 project where I'm trying to add this library.
I've manually merged project pods with UnityConfig, i.e passed this step successfully.
However, I'm experiencing following error in Xcode:
Screenshot 2019-08-19 at 15 27 31

Steps to reproduce

  1. react-native init
  2. cd ios/ && pod install
  3. npm i react-native-unity-view && react-native-link react-native-unity-view
  4. Add UnityConfig
  5. cd ios/ && pod install - issues.
  6. Merge manually pods into UnityConfig (solution that worked)
  7. Dead code stripping to YES.
  8. Edit main.m
  9. Build Unity for iOS
  10. See screenshot

UPDATE:

I fixed the issue by adding $(SRCROOT)/../../../ios/Pods/Headers/Public to library header search path.

NEXT ISSUE:

Screenshot 2019-08-19 at 17 44 38

@benjarwar
Copy link

See #136 if you're interested in forking this library and making it CocoaPods compatible.

@juicycleff
Copy link

Save yourself the hassle by using https://www.npmjs.com/package/react-native-unity-view-reinvented

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

No branches or pull requests

5 participants