pod repo push error:Multiple commands produce - cocoapods

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

Related

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)

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.

Error Building OpenFlow project in OMNET++

I downloaded an openflow for OMNeT 5.5.1 and inet 3.6.6 from the following link:
https://github.com/CoRE-RG/OpenFlow
When I build the project it could not create libopenflow_dbg.dll file, and it gives the following errors:
make[1]: *** [Makefile:164: ../out/clang-release/src/libopenflow.dll] Error 1
The log shows that you try to build project in release mode. Therefore change the mode to debug (i.e. right-click on project and select Build Configuraions | Set Active | debug). Do the same for INET.
If errors will continue to occur set verbose output by opening Properties of the project | C/C++ Build | Behavior and in the Build field add V=1 at the end. Then build project, and go to the first error in the log, and insert this error in your question.

Xcode 10 build error - Multiple commands produce info.plist

I recently updated to Xcode 10 but now get this whenever I try to run my build:
Build system information
error: Multiple commands produce '/Users/shiningsunnyday/Library/Developer/Xcode/DerivedData/aiRun-aogoneumhlleekecmbglgiyifpwy/Build/Products/Debug-iphoneos/aiRun.app/Info.plist':
1) Target 'aiRun' (project 'aiRun') has copy command from '/Users/shiningsunnyday/Documents/GitHub/running_app/RUN BABY/aiRun/aiRun/Info.plist' to '/Users/shiningsunnyday/Library/Developer/Xcode/DerivedData/aiRun-aogoneumhlleekecmbglgiyifpwy/Build/Products/Debug-iphoneos/aiRun.app/Info.plist'
2) Target 'aiRun' (project 'aiRun') has process command with output '/Users/shiningsunnyday/Library/Developer/Xcode/DerivedData/aiRun-aogoneumhlleekecmbglgiyifpwy/Build/Products/Debug-iphoneos/aiRun.app/Info.plist'
I can remove my Info.plist's target membership and it works but I need the custom-set key values inside it. What do I do?
Workspace Project > Build Settings > find[Command+F] > info.plist >
Packaging > info.plist File - [your_target/info.plist]
The above method is the cleanest answer.
[XCode - File - Workspace Settings - New Build System(Default)]

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