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

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.

Related

Build failed with an exception Could not resolve io.github.g00fy2:versioncompare:1.5.0

cordova.cmd build android --release
The "" tags were detected and are no longer supported. Please migrate to the "preference" tag "AndroidWindowSplashScreenAnimatedIcon".
cordova-plugin-androidx-adapter: Processed 34 source files in 588ms
Checking Java JDK and Android SDK versions
ANDROID_HOME=C:\Users\iamsh\AppData\Local\Android\Sdk (recommended setting)
ANDROID_SDK_ROOT=C:\android-sdk-windows (DEPRECATED)
Using Android SDK: C:\android-sdk-windows
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Webtrikon\quickchicken\platforms\android\build.gradle' line: 21
What went wrong:
A problem occurred evaluating root project 'Quick Chicken'.
Could not resolve all files for configuration 'classpath'.
Could not resolve io.github.g00fy2:versioncompare:1.5.0.
Required by:
unspecified:unspecified:unspecified
> Could not resolve io.github.g00fy2:versioncompare:1.5.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/github/g00fy2/versioncompare/1.5.0/versioncompare-1.5.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/github/g00fy2/versioncompare/1.5.0/versioncompare-1.5.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4.2/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3s
Command failed with exit code 1: C:\Webtrikon\quickchicken\platforms\android\gradlew :app:bundleRelease -b C:\Webtrikon\quickchicken\platforms\android\build.gradle
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android --release exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
how to solve this error, Stuck with it from past 4 days.

EAS Expo development build succeeds, but production build fails

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)

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

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

Unable to build wso2 kernel 4.0.6

When i am trying to build the wso2 kernel4.0.6, Build failed due to the f0llowing error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-
5:attached (2-dist) on project wso2carbon-core: Failed to create assembly: Error adding file to archive:
\distribution\kernel\4.0.0\..\..\..\core\org.wso2.carbon.core\4.0.0\target\Version.aar isn't a file. ->
As the file \core\org.wso2.carbon.core\4.0.0\target\Version.aar that maven is looking for isn't present, your build is failing.
You need to check out the code in https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/patch-releases/4.0.6/ location and build. Use that URL location if you haven't done so.

Resources