We use Visual Studio AppCenter to build code from our repo and in the cloud. It automatically run unit tests and releases the app to testers and stores (Android, iOS).
When building the React Native app in AppCenter, it failed for iOS with many errors for Pendo.arm64.xar. I opened the issue initially at pendo-io/RN-demo-app-React-Navigation repo, but was advised to open it here.
Most of the errors are similar to the below about the address of an intrinsic:
Clang: cd /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/temptc3472sy
['/Applications/Xcode_13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', '-cc1', '-cc1', '-triple', 'arm64-apple-ios9.0.0', '-emit-obj', '--mrelax-relocations', '-disable-llvm-passes', '-faligned-alloc-unavailable', '-target-sdk-version=15.4', '-fvisibility-inlines-hidden-static-local-var', '-target-abi', 'darwinpcs', '-Os', '-x', 'ir', '002', '-o', '002.o']
-= Output =-
Cannot take the address of an intrinsic!
%18 = tail call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*))(i8 %16, i8* %17) #12 [ "clang.arc.attachedcall"(i8* (i8*)* @llvm.objc.retainAutoreleasedReturnValue) ], !dbg !53, !clang.arc.no_objc_arc_exceptions !41
Cannot take the address of an intrinsic!
...
...
...
...
...
...
...
%37 = call %7* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %7* (i8*, i8*))(i8 %35, i8* %36) #7 [ "clang.arc.attachedcall"(i8* (i8*)* @llvm.objc.retainAutoreleasedReturnValue) ], !dbg !603
fatal error: error in backend: Broken module found, compilation aborted!
Exited with 70
Failed to compile bundle: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Pendonzdrrlvp/Pendo.arm64.xar
Stderr:
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:372:in run' /Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:2886:in
block in CompileOrStripBitcodeInBundle'
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:2825:in each' /Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:2825:in
CompileOrStripBitcodeInBundle'
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:3112:in block in ProcessIPA' /Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:3073:in
each'
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:3073:in ProcessIPA' /Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/ipatool:4035:in
'}
** EXPORT FAILED **
##[error]Error: /usr/bin/xcodebuild failed with return code: 70