Open mtostenson opened 5 years ago
@alisherakb I was only able to build after downgrading to an older version of Unity 2018.1f2.
However, my initial version of Unity was v2018.3.13 when I encountered the error. react-native-unity-view: v1.3.3
I also made changes to the library's xcconfig file
In my case downgrading react-native-unity-view
to 1.2.1
solved the issue.
The error was occurring because of the UnityNativeModule.h
that appeared in newer versions.
same isuue. I solved it in the following way.
"Undefined symbols for architecture arm64: _OBJCCLASS$_AVPlayerViewController" -> 1: Visit Build phases 2: Add AVKit.framework
Unable to use '@try' with Objective-C exceptions disabled -> 1: Project Navigator -> select project or target -> build settings -> Enable Objective-C Exceptions https://stackoverflow.com/questions/11855382/how-to-enable-objective-c-exceptions-on-xcode-4-2
react-native info
info React Native Environment Info: System: OS: macOS 10.14.5 CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz Memory: 1.06 GB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.14.0 - /usr/local/Cellar/node/11.14.0/bin/node Yarn: 1.15.2 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2 IDEs: Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.5 => 0.59.5 npmGlobalPackages: create-react-native-app: 2.0.2 react-native-cli: 2.0.1
We also have the same issue at iphone XS MAX in ios 12.1.4 also ,still crashed, any idea?
yes i have the same issue at xs max and ipad pro
I had problems with iOS Ad-Hoc / App Store Builds too. The app crashed immediately without any useful logs. Setting some compiler flags in XCode worked for me. You could give it a try.
ios/rnunitydemo.xcodeproj/project.pbxproj
COPY_PHASE_STRIP = YES; ENABLE_BITCODE = NO; STRIP_INSTALLED_PRODUCT = NO;
i have try it ,but still crash in xs max & ipad pro ,but no crash in iphone x & iphone 8plus
Thread 6 name: com.facebook.react.JavaScript
Thread 6 Crashed:
0 libsystem_kernel.dylib 0x0000000202b540cc pthread_kill + 8
1 libsystem_c.dylib 0x0000000202aad14c abort + 144
2 libsystem_malloc.dylib 0x0000000202ba8c84 _malloc_put + 0
3 libsystem_malloc.dylib 0x0000000202ba8e4c malloc_report + 64
4 libsystem_malloc.dylib 0x0000000202b9a520 free + 432
5 libc++.1.dylib 0x000000020219559c std::1::basic_string<char, std::1::char_traits
@JanOwiesniak Hi, have you managed it work with Unity 2018.3.+? I'm experiencing the same issue
Unity version: 2018.2.1f1 React native version: 0.57.8
When running straight out of XCode, it works fine. However, creating a release IPA file results in an immediate crash on launch. We use fastlane to generate an IPA for beta testing, so we don't usually see this problem until then. I tested this using a blank react native project, and a blank unity project, and the crash is there. There are no useful crash logs unfortunately. Has anyone been able to publish an iOS release using this library?
Thanks
UPDATE: Setting "Strip Linked Product" to NO prevents this crash. However, this means the debug symbols are not removed and causes the app size to increase by 30-50%
FURTHER UPDATE The "Strip Linked Product" workaround does not appear to work for iOS 12.1.
Here is an issue I created in the react native repo that describes a possible solution.
Here's the crash report: