f111fei / react-native-unity-view

Show an unity view in react native
MIT License
402 stars 102 forks source link

Not support React Native 0.6 or higher. #127

Open CoinGoblin07 opened 4 years ago

CoinGoblin07 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

See https://github.com/f111fei/react-native-unity-view/issues/136 if you're interested in forking this library and making it CocoaPods compatible.

juicycleff commented 4 years ago

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