react-native-unity
react-native-unity copied to clipboard
EAS build failed
Hi
I've success build react and unity with Expo in develop build from Xcode. I'm looking forward to release build it. I try to build with EAS local. To be frank, I just start native build with React. Please any your idea about below error code.
[RUN_FASTLANE] The following build commands failed: [RUN_FASTLANE] CompileC /Users/sewonist/Library/Developer/Xcode/DerivedData/ZeroClub-fpapnjqmkcspglddxdtsvimpdrez/Build/Intermediates.noindex/ArchiveIntermediates/ZeroClub/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-unity.build/Objects-normal/arm64/ReactNativeUnity.o /var/folders/p6/c4hvy5mj3wz6jckl0ndm6ylw0000gn/T/eas-build-local-nodejs/5bb49047-d1b0-41c6-9031-1183ba3573fd/build/node_modules/@azesmway/react-native-unity/ios/ReactNativeUnity.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-unity' from project 'Pods')
Now I try build with ios. At time, It is not possible load to UnityFramework. I can build with Debug. But I cannot build with Archive and EAS build.
[RUN_FASTLANE] › Compiling @azesmway/react-native-unity Pods/react-native-unity » ReactNativeUnity.m
[RUN_FASTLANE] ** ARCHIVE FAILED **
[RUN_FASTLANE]
[RUN_FASTLANE]
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE] CompileC /Users/sewonist/Library/Developer/Xcode/DerivedData/ZeroClub-djejmjuhyuwkwqfmkkqrmhluxene/Build/Intermediates.noindex/ArchiveIntermediates/ZeroClub/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-unity.build/Objects-normal/arm64/ReactNativeUnityView.o /var/folders/p6/c4hvy5mj3wz6jckl0ndm6ylw0000gn/T/eas-build-local-nodejs/db89cfb8-ff3a-42bd-b5de-a1d7134a6665/build/node_modules/@azesmway/react-native-unity/ios/ReactNativeUnityView.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-unity' from project 'Pods')
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE]
❌ (node_modules/@azesmway/react-native-unity/ios/ReactNativeUnity.h:4:10)
2 | #import <React/RCTEventEmitter.h>
3 | #include <mach-o/ldsyms.h>
> 4 | #include <UnityFramework/UnityFramework.h>
| ^ 'UnityFramework/UnityFramework.h' file not found
5 |
6 | @protocol RNUnityAppController <UIApplicationDelegate, UnityFrameworkListener>
7 |

Sure. I already set up Build Phases follow your guide.
Although, it didn't work when I build to Archive. (Just build to run is ok.)
I found solution it. I add UnityFramework to Build Phases of Pods. I don't know it's correct. But it is working for me.
I should more test it.

it should be like this
I set up like you firstly. In my case, there is build error too. So I change set up like below image.
I'm not sure but it is working for me. I will find more correct setting.
I set up like you firstly. In my case, there is build error too. So I change set up like below image.
![]()
I'm not sure but it is working for me. I will find more correct setting.
you should add files to "ZeroClub" not in Pods, usually that should work. i guess it's too late to reply but i was doing something similar and thought why not update this.