Error During IPA Build for Distribution #2820
Replies: 1 comment 4 replies
-
Hello @Rustam-Hashymov. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
React Native
Steps to reproduce
Expected results
The IPA build should complete successfully without any errors, creating an archive ready for distribution, and the app should be published as expected.
Actual results
The build fails with the following error message:
`Failed to archive /Users/builder/clone/ios/Eridan_Duplicator_Mobile_App.xcworkspace. The following build commands failed:
CompileC /Users/builder/Library/Developer/Xcode/DerivedData/Eridan_Duplicator_Mobile_App-hcbnencqhkgxhtaiqfpwqzfzkqeo/Build/Intermediates.noindex/ArchiveIntermediates/stage/IntermediateBuildFilesPath/Eridan_Duplicator_Mobile_App.build/Release-iphoneos/Eridan_Duplicator_Mobile_App_Stage.build/Objects-normal/arm64/AppDelegate.o /Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Eridan_Duplicator_Mobile_App_Stage' from project 'Eridan_Duplicator_Mobile_App')
...
/Applications/Xcode-16.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -ivfsstatcache /Users/builder/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos18.0-22A3362-77c87d3582361da8819bf4750a9bd04a.sdkstatcache -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fno-color-diagnostics -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/builder/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wquoted-include-in-framework-header -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body @/Users/builder/Library/Developer/Xcode/DerivedData/Eridan_Duplicator_Mobile_App-hcbnencqhkgxhtaiqfpwqzfzkqeo/Build/Intermediates.noindex/ArchiveIntermediates/stage/IntermediateBuildFilesPath/Eridan_Duplicator_Mobile_App.build/Release-iphoneos/Eridan_Duplicator_Mobile_App_Stage.build/Objects-normal/arm64/af3fcb34312c57c0f52879cdce924b91-common-args.resp -MMD -MT dependencies -MF /Users/builder/Library/Developer/Xcode/DerivedData/Eridan_Duplicator_Mobile_App-hcbnencqhkgxhtaiqfpwqzfzkqeo/Build/Intermediates.noindex/ArchiveIntermediates/stage/IntermediateBuildFilesPath/Eridan_Duplicator_Mobile_App.build/Release-iphoneos/Eridan_Duplicator_Mobile_App_Stage.build/Objects-normal/arm64/AppDelegate.d --serialize-diagnostics /Users/builder/Library/Developer/Xcode/DerivedData/Eridan_Duplicator_Mobile_App-hcbnencqhkgxhtaiqfpwqzfzkqeo/Build/Intermediates.noindex/ArchiveIntermediates/stage/IntermediateBuildFilesPath/Eridan_Duplicator_Mobile_App.build/Release-iphoneos/Eridan_Duplicator_Mobile_App_Stage.build/Objects-normal/arm64/AppDelegate.dia -c /Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/AppDelegate.mm -o /Users/builder/Library/Developer/Xcode/DerivedData/Eridan_Duplicator_Mobile_App-hcbnencqhkgxhtaiqfpwqzfzkqeo/Build/Intermediates.noindex/ArchiveIntermediates/stage/IntermediateBuildFilesPath/Eridan_Duplicator_Mobile_App.build/Release-iphoneos/Eridan_Duplicator_Mobile_App_Stage.build/Objects-normal/arm64/AppDelegate.o
In file included from /Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/AppDelegate.mm:1:
/Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/AppDelegate.h:1:9: fatal error: 'RCTAppDelegate.h' file not found
1 | #import <RCTAppDelegate.h>
| ^~~~~~~~~~~~~~~~~~
1 error generated.
ScanDependencies /Users/builder/Library/Developer/Xcode/DerivedData/Eridan_Duplicator_Mobile_App-hcbnencqhkgxhtaiqfpwqzfzkqeo/Build/Intermediates.noindex/ArchiveIntermediates/stage/IntermediateBuildFilesPath/Eridan_Duplicator_Mobile_App.build/Release-iphoneos/Eridan_Duplicator_Mobile_App_Stage.build/Objects-normal/arm64/main.o /Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Eridan_Duplicator_Mobile_App_Stage' from project 'Eridan_Duplicator_Mobile_App')
...
/Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/AppDelegate.h:1:9: error: 'RCTAppDelegate.h' file not found (in target 'Eridan_Duplicator_Mobile_App_Stage' from project 'Eridan_Duplicator_Mobile_App')
/Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/main.m:3:9: note: in file included from /Users/builder/clone/ios/Eridan_Duplicator_Mobile_App/main.m:3:
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Eridan_Duplicator_Mobile_App_Stage' from project 'Eridan_Duplicator_Mobile_App')
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Eridan_Duplicator_Mobile_App_Stage' from project 'Eridan_Duplicator_Mobile_App')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Eridan_Duplicator_Mobile_App_Stage' from project 'Eridan_Duplicator_Mobile_App')
warning: Run script build phase 'Upload Debug Symbols to Sentry' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Eridan_Duplicator_Mobile_App_Stage' from project 'Eridan_Duplicator_Mobile_App')
`
After this error, other scripts continue to run and report a "success" status. However, the app does not get published as intended, likely due to the initial build failure.
Build id (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions