EAS Expo development build succeeds, but production build fails - xcode

I am able to build a "development" build using eas build --profile development --platform ios and equally eas build --profile development --platform ios --local
However, production fails using eas build --profile production --platform ios and equally eas build --profile production --platform ios --local
I am using a managed workflow (custom development client) and eas-cli/2.8.0 darwin-arm64 node-v16.15.0, expo version 46
eas.json
{
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
},
"android": {
"buildType": "apk"
}
},
"production": {},
"dev-device": {
"developmentClient": true,
"distribution": "internal",
"android": {
"buildType": "apk"
}
},
"build": {}
},
"cli": {
"version": ">= 0.48.2"
}
}
The error message unfortunately doesn't help - the actual error seems to be omitted, as the output is blank right after This must be a bug with
[RUN_FASTLANE]
⚠️ (/Users/michael/Library/Developer/Xcode/DerivedData/<projectname>-gcqxmmzlobuldzayqgevdgwkkbet/Build/Intermediates.noindex/ArchiveIntermediates/<projectname>/BuildProductsPath/Release-iphoneos/ExpoModulesCore/ExpoModulesCore.framework/Headers/EXNativeModulesProxy.h:35:161)
33 | - (nonnull instancetype)initWithCustomModuleRegistry:(nonnull EXModuleRegistry *)moduleRegistry;
34 |
> 35 | - (void)callMethod:(NSString *)moduleName methodNameOrKey:(id)methodNameOrKey arguments:(NSArray *)arguments resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
| ^ block pointer is missing a nullability type specifier [-Wnullability-completeness]
36 |
37 | #end
38 |
[RUN_FASTLANE] › Linking <projectname> » <projectname>
[RUN_FASTLANE] ⚠️ ld: method '+moduleName' in category from /Users/michael/Library/Developer/Xcode/DerivedData/<projectname>-gcqxmmzlobuldzayqgevdgwkkbet/Build/Intermediates.noindex/ArchiveIntermediates/<projectname>/BuildProductsPath/Release-iphoneos/ExpoModulesCore/ExpoModulesCore.framework/ExpoModulesCore(ExpoBridgeModule-80aa35da68a4e1df6bb30c3c482a2b01.o) overrides method from class in /Users/michael/Library/Developer/Xcode/DerivedData/<projectname>-gcqxmmzlobuldzayqgevdgwkkbet/Build/Intermediates.noindex/ArchiveIntermediates/<projectname>/BuildProductsPath/Release-iphoneos/ExpoModulesCore/ExpoModulesCore.framework/ExpoModulesCore(ExpoBridgeModule-5220cf34e840cf7b0d23a3f2cb8765f5.o)
[RUN_FASTLANE] ⚠️ ld: method '+UIStatusBarAnimation:' in category from /Users/michael/Library/Developer/Xcode/DerivedData/<projectname>-gcqxmmzlobuldzayqgevdgwkkbet/Build/Intermediates.noindex/ArchiveIntermediates/<projectname>/BuildProductsPath/Release-iphoneos/RNScreens/RNScreens.framework/RNScreens(RNSScreen.o) conflicts with same method from another category
[RUN_FASTLANE] › Generating debug <projectname> » <projectname>.app.dSYM
[RUN_FASTLANE] › Executing <projectname> » Bundle React Native code and images
[RUN_FASTLANE] the transform cache was reset.
[RUN_FASTLANE]
❌ error: File /Users/michael/Library/Developer/Xcode/DerivedData/<projectname>-gcqxmmzlobuldzayqgevdgwkkbet/Build/Intermediates.noindex/ArchiveIntermediates/<projectname>/BuildProductsPath/Release-iphoneos/<projectname>.app/main.jsbundle does not exist. This must be a bug with
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'fmt' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'abseil' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'Libuv-gRPC' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'BoringSSL-GRPC' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'RCT-Folly' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'React-bridging' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'gRPC-Core' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'React-Codegen' from project 'Pods')
[RUN_FASTLANE] Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, 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 'gRPC-C++' from project 'Pods')
[RUN_FASTLANE] Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, 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 'EXConstants' from project 'Pods')
[RUN_FASTLANE] ▸ ** ARCHIVE FAILED **
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/michael/Library/Developer/Xcode/DerivedData/<projectname>-gcqxmmzlobuldzayqgevdgwkkbet/Build/Intermediates.noindex/ArchiveIntermediates/<projectname>/IntermediateBuildFilesPath/<projectname>.build/Release-iphoneos/<projectname>.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target '<projectname>' from project '<projectname>')
[RUN_FASTLANE] ▸ (1 failure)
[RUN_FASTLANE] ** ARCHIVE FAILED **
[RUN_FASTLANE]
[RUN_FASTLANE]
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE] PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/michael/Library/Developer/Xcode/DerivedData/<projectname>-gcqxmmzlobuldzayqgevdgwkkbet/Build/Intermediates.noindex/ArchiveIntermediates/<projectname>/IntermediateBuildFilesPath/<projectname>.build/Release-iphoneos/<projectname>.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target '<projectname>' from project '<projectname>')
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE]
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | Build environment |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.211.0 |
[RUN_FASTLANE] | sdk | iPhoneOS16.1.sdk |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE]
[RUN_FASTLANE] Looks like fastlane ran into a build/archive error with your project
[RUN_FASTLANE] It's hard to tell what's causing the error, so we wrote some guides on how
[RUN_FASTLANE] to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[RUN_FASTLANE] Before submitting an issue on GitHub, please follow the guide above and make
[RUN_FASTLANE] sure your project is set up correctly.
[RUN_FASTLANE] fastlane uses `xcodebuild` commands to generate your binary, you can see the
[RUN_FASTLANE] the full commands printed out in yellow in the above log.
[RUN_FASTLANE] Make sure to inspect the output above, as usually you'll find more error information there
[RUN_FASTLANE]
[RUN_FASTLANE] [!] Error building the application - see the log above
[RUN_FASTLANE] Error: Fastlane build failed with unknown error. See logs for the "Run fastlane" and "Xcode Logs" phases for more information.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.
[CLEAN_UP_CREDENTIALS] Destroying keychain - /var/folders/lz/vn3ps0t51nv5q2g7q4kppt1r0000gn/T/turtle-v2-8afb540c-5bfc-4d59-886b-a08cb4540d11.keychain
[CLEAN_UP_CREDENTIALS] Removing provisioning profile
Build failed
Fastlane build failed with unknown error. See logs for the "Run fastlane" and "Xcode Logs" phases for more information.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.
Error: npx exited with non-zero code: 1
❯ eas build --profile production --platform ios --local

Turns out, for the build to consider the latest code changes, they need to be committed. Local changes are not sufficient
Buried in some XCode logs an import was missing; the actual error wasn't showing in the logs outputted on the CLI (in my case it was a faulty import, which was fixed, but not committed to git)

Related

Why does fastlane build to testflight keep failing on archive?

I haven't changed my fastlane config at all from times it was working. But now after sometime when I needed to do another build it fails now on this part. What should I do here?
This is the following I'm getting.
[15:42:40]: ▸ Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, 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 'app' from project 'app')
[15:42:40]: ▸ 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 warning, 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 'app' from project 'app')
[15:42:40]: ▸ Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this warning, 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 'app' from project 'app')
[15:42:40]: ▸ ** ARCHIVE FAILED **
[15:42:40]: Exit status: 65
This is the fast lane config that is being used.
desc "Push a new beta build to TestFlight"
lane :beta do
increment_build_number(xcodeproj: "app.xcodeproj")
#sync_code_signing
build_app(workspace: "app.xcworkspace", scheme: "app", export_options: {
provisioningProfiles: {
"com.app.app" => "vahStoreProf",
}
}, xcargs: "-allowProvisioningUpdates")
# Changed to update_code_signing_settings from enable_automatic_code_signing since it was deprecated
update_code_signing_settings(path: "app.xcodeproj")
upload_to_testflight
end
It's a known issue affecting recent versions of Fastlane running combined with Xcode 14 and/or macOS 13.
You can check open issues:
https://github.com/fastlane/fastlane/issues/20810
https://github.com/fastlane/fastlane/issues/20825
https://github.com/fastlane/fastlane/issues/20800
For the time being, the only solution I found in my project is locking a lower version of Xcode in the Fastfile, eg:
xcode_select("/Applications/Xcode_13.4.1.app")
In case you're running your pipeline on Github, choosing your environment can be relatively easy (easier than downgrading your local machine). Depending on your Github runtime, you may have different versions of Xcode installed. Assuming you're on macOS-latest (macOS 12), here is a list of available Xcode versions.
Add
gym(
....
xcargs: "CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM="
}
To resolve the issue.

how can i fix this issue

when i run flutter run in my project, the compile failed. i got this code in verbose mode
ADMIN#ZIRCON-KH101 MINGW64 ~/Documents/android project/new/flutternewsapp-10/codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines/01. Flutter/classic_flutter_news
$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Target debug_android_application failed: FileSystemException: Creation failed, path = 'C:\Users\ADMIN\Documents\android project\new\flutternewsapp-10\codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines\01. Flutter\classic_flutter_news\build\app\intermediates\flutter\debug\flutter_assets\packages/cupertino_icons' (OS Error: The filename or extension is too long.
, errno = 206)
build failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full
insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 21s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 23.9s
Exception: Gradle task assembleDebug failed with exit code 1
how can i fix this issues cause i already run flutter packages get, flutter clean inside my project and pass my release to stable channel
Your File path is too long.
C:\Users\ADMIN\Documents\android project\new\flutternewsapp-10\codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines\01. Flutter\classic_flutter_news\build\app\intermediates\flutter\debug\flutter_assets\packages/cupertino_icons
this exceeds some limitations in compilers and some programs.
so simply move your project folder to something simple like C:\Projest\
also change the name of this folder to something shorter
codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines

Can't compile Spring Framework code from command line

I had a look to doc Build from Source. I cloned repository, checked out master and tried to build project by executing
$ ./gradlew build
but i got error
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/5.6.4/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Task :spring-aspects:compileAspectj FAILED
[warning] couldn't find aspectjrt.jar on classpath, checked: C:\Program Files\Java\jdk1.8.0_212\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_212\jre\classes;E:\git\spring-framework\spring-orm\build\libs\spring-orm-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-jdbc\build\libs\spring-jdbc-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-tx\build\libs\spring-tx-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-beans\build\libs\spring-beans-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-core\build\libs\spring-core-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-core\build\libs\spring-cglib-repack-3.3.0.jar;E:\git\spring-framework\spring-core\build\libs\spring-objenesis-repack-3.1.jar;E:\git\spring-framework\spring-jcl\build\libs\spring-jcl-5.2.2.BUILD-SNAPSHOT.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_212\jre\lib\ext\zipfs.jar;E:\git\spring-framework\spring-orm\build\libs\spring-orm-5.2.2.BUILD-SNAPSHOT.jar;C:\Users\Витек\.gradle\caches\modules-2\files-2.1\org.aspectj\aspectjweaver\1.9.4\9205229878f3d62fbd3a32a0fb6be2d6ad8589a9\aspectjweaver-1.9.4.jar;C:\Users\Витек\.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.2\25ea2e8b0c338a877313bd4672d3fe056ea78f0d\jsr305-3.0.2.jar;C:\Users\Витек\.gradle\caches\modules-2\files-2.1\org.aspectj\aspectjrt\1.9.4\7efb30f3259d13472ee0f92bef4319fda700f522\aspectjrt-1.9.4.jar;E:\git\spring-framework\spring-jdbc\build\libs\spring-jdbc-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-tx\build\libs\spring-tx-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-beans\build\libs\spring-beans-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-core\build\libs\spring-core-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-core\build\libs\spring-cglib-repack-3.3.0.jar;E:\git\spring-framework\spring-core\build\libs\spring-objenesis-repack-3.1.jar;E:\git\spring-framework\spring-jcl\build\libs\spring-jcl-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-context-support\build\libs\spring-context-support-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-context\build\libs\spring-context-5.2.2.BUILD-SNAPSHOT.jar;E:\git\spring-framework\spring-aop\build\libs\spring-aop-5.2.2.BUILD-SNAPSHOT.jar;C:\Users\Витек\.gradle\caches\modules-2\files-2.1\javax.cache\cache-api\1.1.0\77bdcff7814076dfa61611b0db88487c515150b6\cache-api-1.1.0.jar;C:\Users\Витек\.gradle\caches\modules-2\files-2.1\javax.transaction\javax.transaction-api\1.3\e006adf5cf3cca2181d16bd640ecb80148ec0fce\javax.transaction-api-1.3.jar;E:\git\spring-framework\spring-expression\build\libs\spring-expression-5.2.2.BUILD-SNAPSHOT.jar
[error] classpath error: unable to find org.aspectj.lang.JoinPoint (check that aspectjrt.jar is in your classpath)
1 error, 1 warning
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spring-aspects:compileAspectj'.
> Compilation failed with exit code 1; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 0s
133 actionable tasks: 5 executed, 128 up-to-date
But when i exclude spring-aspect tasks build is ok
$ ./gradlew -x :spring-aspects:compileAspectj -x :spring-aspects:compileTestAspectj build
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: http/docs.gradle.org/5.6.4/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
BUILD SUCCESSFUL in 5m 25s
200 actionable tasks: 5 executed, 195 up-to-date
Intellij IDEA configuration doc contains information
When prompted exclude the spring-aspects module (or after the import via File-> Project Structure -> Modules)
Should Build from Source doc be updated or there is other problem?
Settings GRADLE_USER_HOME env variable to path, containing only ascii chars fixes problem
$ GRADLE_USER_HOME=/e/.gradle ./gradlew build
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details
BUILD SUCCESSFUL in 4m 25s
203 actionable tasks: 4 executed, 199 up-to-date

pod repo push error:Multiple commands produce

I have a project that needs to be uploaded to my private pods. Because it depends others and there is an error: Multiple commands produce. I have set my xcode like that:File - worksapce - build system - Legacy Build System.It can run on top of my xcode success.
But when I execute the command: pod repo push XXX XXX. Podspec - sources = 'xxx, https://github.com/CocoaPods/Specs' --verbose --allow-warnings --use-libraries. The mistake was repeated:
Build system information
error: Multiple commands produce '/Users/joker/Library/Developer/Xcode/DerivedData/App-fdhxxtrwyvhdkcapwibarbetxoyu/Build/Products/Release-iphonesimulator/App.app/Info.plist':
1) That command depends on command in Target 'App' (project 'App'): script phase “[CP] Copy Pods Resources”
2) Target 'App' (project 'App') has process command with output '/Users/joker/Library/Developer/Xcode/DerivedData/App-fdhxxtrwyvhdkcapwibarbetxoyu/Build/Products/Release-iphonesimulator/App.app/Info.plist'
** BUILD FAILED **
Testing with `xcodebuild`.
-> XXX (89)
- WARN | url: The URL (https://gitee.com/Becent/BCStarRocket) is not reachable.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
Testing with xcodebuild, xcodebuild: note is Using new build system, not Legacy Build System.
The issue might be occurring because of multiple Plist or other files within App-
Solution -> Open target -> Build phases > Copy Bundle Resources and remove info.plist from there.
Xcode 10 Error: Multiple commands produce

Xcode command line build fails with "Failed to read entitlements"

My Jenkins (continues integration server) is failing with the error:
error: Failed to read entitlements from '/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/yMWJTWS2AJ/Payload/app.com.app'
Full output:
The following build commands failed:
CompileC /Users/jenkins/Library/Developer/Xcode/DerivedData/App-doozayqorsxatsbzlunnptqszxax/Build/Intermediates/rara.build/Production-iphoneos/rara.build/Objects-normal/armv7/RRArtworkView.o
app/RRArtworkView.m normal armv7 objective-c
com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Poduct build
dir:
/Users/jenkins/Library/Developer/Xcode/DerivedData/app-doozayqorsxatsbzlunnptqszxax/Build/Products/Production-iphoneos
xcrun via /usr/bin/xcrun (xcrun) DEVELOPER_DIR = '/Developer' via
'/usr/share/xcode-select/xcode_dir_path' Database Key is:
PackageApplication_/Developer_iphoneos Cache version is '1'
Lookup resolved in
'/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/xcrun_db' :
'/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'
error: Failed to read entitlements from
'/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/yMWJTWS2AJ/Payload/app.com.app'
Build "app" failed Build step 'Execute shell' marked build as failure
It build fine form the IDE and will install on the device.
System info:
Xcode v4.3.2
The rather cryptic message:
Failed to read entitlements[...]
Is cause by Xcode not archiving the app correctly, this is normally caused by:
Having "Skip Install" set to NO
Have header file (.h) copied to a public folder in the build phase
See the question:
Compile, Build or Archive problems with Xcode 4 (and dependancies)
For a detailed explanation of these issues.

Resources