react-native-unity-view icon indicating copy to clipboard operation
react-native-unity-view copied to clipboard

Not support React Native 0.6 or higher.

Open CoinGoblin07 opened this issue 5 years ago • 4 comments

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?

CoinGoblin07 avatar Aug 12 '19 02:08 CoinGoblin07

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.

mtostenson avatar Aug 19 '19 11:08 mtostenson

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

alisherakb avatar Aug 19 '19 12:08 alisherakb

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

benjarwar avatar Nov 20 '19 16:11 benjarwar

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

juicycleff avatar Dec 03 '19 06:12 juicycleff