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

EAS build failed

Open sewonist opened this issue 3 years ago • 6 comments

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')

sewonist avatar Apr 12 '22 03:04 sewonist

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 |

sewonist avatar Apr 18 '22 10:04 sewonist

example — example xcodeproj 2022-04-18 13-50-48

azesmway avatar Apr 18 '22 10:04 azesmway

Sure. I already set up Build Phases follow your guide.

image

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.

image

I should more test it.

sewonist avatar Apr 18 '22 11:04 sewonist

example — Unity-iPhone xcodeproj 2022-04-18 14-32-58

it should be like this

azesmway avatar Apr 18 '22 11:04 azesmway

I set up like you firstly. In my case, there is build error too. So I change set up like below image.

image

I'm not sure but it is working for me. I will find more correct setting.

sewonist avatar Apr 18 '22 11:04 sewonist

I set up like you firstly. In my case, there is build error too. So I change set up like below image.

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.

TheMehranKhan avatar Nov 10 '23 23:11 TheMehranKhan