Xcode Server 11 Export Archive Fails - xcode-server

The 11.x series of Xcode seems to have broken Xcode Server. Every bot that is configured to output an archive at the end of processing now fails.
The raw output log looks like the following:
/usr/bin/codesign --force --sign - --entitlements /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Pocket\ Bot/IntermediateBuildFilesPath/Pocket\ Bot.build/Release-iphonesimulator/Pocket\ Bot.build/Pocket\ Bot.app.xcent /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Pocket\ Bot/InstallationBuildProductsLocation/Applications/Pocket\ Bot.app
RegisterExecutionPolicyException /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Pocket\ Bot/InstallationBuildProductsLocation/Applications/Pocket\ Bot.app (in target 'Pocket Bot' from project 'Pocket Bot')
cd /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/Source/PocketBot
builtin-RegisterExecutionPolicyException /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Pocket\ Bot/InstallationBuildProductsLocation/Applications/Pocket\ Bot.app
Touch /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Pocket\ Bot/InstallationBuildProductsLocation/Applications/Pocket\ Bot.app (in target 'Pocket Bot' from project 'Pocket Bot')
cd /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/Source/PocketBot
/usr/bin/touch -c /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/00e9c33f477939d77900feeab0004e34/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Pocket\ Bot/InstallationBuildProductsLocation/Applications/Pocket\ Bot.app
** ARCHIVE SUCCEEDED **
$ /usr/bin/xcrun xcodebuild -exportArchive -archivePath /Users/xcodeserver/Library/Caches/XCSBuilder/Integration-00e9c33f477939d77900feeab000a7a2/Pocket Bot.xcarchive -exportPath /Users/xcodeserver/Library/Caches/XCSBuilder/Integration-00e9c33f477939d77900feeab000a7a2/ExportedProduct -exportOptionsPlist /Users/xcodeserver/Library/Caches/XCSBuilder/Integration-00e9c33f477939d77900feeab000a7a2/ExportOptions.plist -IDEPostProgressNotifications=YES -DVTAllowServerCertificates=YES -DVTProvisioningUseServerAccounts=YES -allowProvisioningUpdates
2019-12-23 08:02:56.486 xcodebuild[42941:4409262] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/zp/h393vgwn2798zhzdv9kz0hrw0000gq/T/Pocket Bot_2019-12-23_08-02-56.486.xcdistributionlogs'.
2019-12-23 08:02:56.507 xcodebuild[42941:4409262] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
2019-12-23 08:02:56.507 xcodebuild[42941:4409262] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
error: exportArchive: Found no compatible export methods for: <DVTFilePath:0x7ff5996eb5f0:'/Users/xcodeserver/Library/Caches/XCSBuilder/Integration-00e9c33f477939d77900feeab000a7a2/Pocket Bot.xcarchive'>
Error Domain=IDEFoundationErrorDomain Code=1 "Found no compatible export methods for: <DVTFilePath:0x7ff5996eb5f0:'/Users/xcodeserver/Library/Caches/XCSBuilder/Integration-00e9c33f477939d77900feeab000a7a2/Pocket Bot.xcarchive'>" UserInfo={NSLocalizedDescription=Found no compatible export methods for: <DVTFilePath:0x7ff5996eb5f0:'/Users/xcodeserver/Library/Caches/XCSBuilder/Integration-00e9c33f477939d77900feeab000a7a2/Pocket Bot.xcarchive'>}
** EXPORT FAILED **
This bot worked before the update to Xcode 11, and now does not. I've even created a new bot, on an entirely different server, and it has the same outcome.
An examination of the path '/Users/xcodeserver/Library/Caches/XCSBuilder' reveals there are no integrations assets at that level, but there are 'Bot' folders. I'm wondering if the export path is missing the 'Bots/{UUID}' component.
Anyone have any suggestions or possible fixes?

Related

How to build dpdk examples on windows

I am able to follow the directions on the dpdk docs for windows.
http://doc.dpdk.org/guides/windows_gsg/build_dpdk.html
I am able to run meson build and ninja -C build and everything seems to work. The problem is whenever I run with the flag -Dexamples=helloworld, or any example for that matter, I get the following failure after running ninja -C build
FAILED: examples/dpdk-helloworld.exe
"clang" -Wl,/MACHINE:X64 -Wl,/OUT:examples/dpdk-helloworld.exe examples/dpdk-helloworld.exe.p/helloworld_main.c.obj "-Wl,/nologo" "-Wl,/release" "-Wl,/nologo" "-Wl,/OPT:REF" "-Wl,/WHOLEARCHIVE:lib\librte_hash.a" "-Wl,/WHOLEARCHIVE:lib\librte_cmdline.a" "-Wl,/WHOLEARCHIVE:lib\librte_pci.a" "-Wl,/WHOLEARCHIVE:lib\librte_ethdev.a" "-Wl,/WHOLEARCHIVE:lib\librte_meter.a" "-Wl,/WHOLEARCHIVE:lib\librte_net.a" "-Wl,/WHOLEARCHIVE:lib\librte_mbuf.a" "-Wl,/WHOLEARCHIVE:lib\librte_mempool.a" "-Wl,/WHOLEARCHIVE:lib\librte_rcu.a" "-Wl,/WHOLEARCHIVE:lib\librte_ring.a" "-Wl,/WHOLEARCHIVE:lib\librte_eal.a" "-Wl,/WHOLEARCHIVE:lib\librte_telemetry.a" "-Wl,/WHOLEARCHIVE:lib\librte_kvargs.a" "-Wl,/WHOLEARCHIVE:drivers\librte_bus_pci.a" "-Wl,/WHOLEARCHIVE:drivers\librte_bus_vdev.a" "-Wl,/WHOLEARCHIVE:drivers\librte_mempool_ring.a" "-lws2_32" "-lmincore" "-ladvapi32" "-lsetupapi" "-ldbghelp" "lib\librte_hash.a" "lib\librte_cmdline.a" "lib\librte_pci.a" "lib\librte_ethdev.a" "lib\librte_meter.a" "lib\librte_net.a" "lib\librte_mbuf.a" "lib\librte_mempool.a" "lib\librte_rcu.a" "lib\librte_ring.a" "lib\librte_eal.a" "lib\librte_telemetry.a" "lib\librte_kvargs.a" "drivers\librte_bus_pci.a" "drivers\librte_bus_vdev.a" "drivers\librte_mempool_ring.a" "-Wl,--subsystem,console" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32"
LINK : warning LNK4044: unrecognized option '/-subsystem'; ignored
LINK : fatal error LNK1181: cannot open input file 'console.obj'
clang: error: linker command failed with exit code 1181 (use -v to see invocation)
[179/181] Linking target lib/rte_hash-21.dll
Creating library lib\rte_hash.lib and object lib\rte_hash.exp
ninja: build stopped: subcommand failed.

Xcode 11.2 Command CompileAssetCatalog failed with a nonzero exit code

Running Xcode 11.2 and can not seem to find much information on this error that occurs when building my project.
Any ideas on how to fix this?
Here is the last line before the error:
CompileAssetCatalog /Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Products/Debug-iphonesimulator/BearAcademy.app /Users/nes/Desktop/BearAcademy/BearAcademy/Assets.xcassets /Users/nes/Desktop/BearAcademy/BearAcademy/Preview\ Content/Preview\ Assets.xcassets (in target 'BearAcademy' from project 'BearAcademy')
cd /Users/nes/Desktop/BearAcademy
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Intermediates.noindex/BearAcademy.build/Debug-iphonesimulator/BearAcademy.build/assetcatalog_dependencies --output-partial-info-plist /Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Intermediates.noindex/BearAcademy.build/Debug-iphonesimulator/BearAcademy.build/assetcatalog_generated_info.plist --app-icon AppIcon --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone12,5 --filter-for-device-os-version 13.2 --sticker-pack-identifier-prefix nes.tl.BearAcademy.sticker-pack. --development-region en --target-device iphone --target-device ipad --minimum-deployment-target 13.2 --platform iphonesimulator --product-type com.apple.product-type.application --compile /Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Products/Debug-iphonesimulator/BearAcademy.app /Users/nes/Desktop/BearAcademy/BearAcademy/Assets.xcassets /Users/nes/Desktop/BearAcademy/BearAcademy/Preview\ Content/Preview\ Assets.xcassets
2019-11-09 22:51:55.323 ibtoold[2285:60606] DEBUG: Added to environment: {
TMPDIR = "/var/folders/gz/t9q9v6pn27jgq69f60q_nvm80000gn/T/0B228C3B-5BE3-455D-9960-304C1022B1B9";
}
CoreGraphics PDF has logged an error. Set environment variable "CG_PDF_VERBOSE" to learn more.
2019-11-09 22:51:55.658 IBCocoaTouchImageCatalogTool[2294:60844] Unable to get image dimensions for file:///Users/nes/Desktop/BearAcademy/BearAcademy/Assets.xcassets/splash-logo-big.imageset/splash-logo-big.pdf
2019-11-09 22:51:55.659 IBCocoaTouchImageCatalogTool[2294:60844] Unable to get image dimensions for file:///Users/nes/Desktop/BearAcademy/BearAcademy/Assets.xcassets/splash-logo-big.imageset/splash-logo-big.pdf
2019-11-09 22:51:55.660 IBCocoaTouchImageCatalogTool[2294:60844] Unable to get image dimensions for file:///Users/nes/Desktop/BearAcademy/BearAcademy/Assets.xcassets/splash-logo-big.imageset/splash-logo-big.pdf
2019-11-09 22:51:55.660 IBCocoaTouchImageCatalogTool[2294:60844] Unable to get image dimensions for file:///Users/nes/Desktop/BearAcademy/BearAcademy/Assets.xcassets/splash-logo-big.imageset/splash-logo-big.pdf
/* com.apple.actool.errors /
: error: Distill failed for unknown reasons.
/ com.apple.actool.document.notices /
/Users/nes/Desktop/BearAcademy/BearAcademy/Assets.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][1x][][]: notice: 76x76#1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0.
/ com.apple.actool.compilation-results */
/Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Products/Debug-iphonesimulator/BearAcademy.app/AppIcon60x60#2x.png
/Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Products/Debug-iphonesimulator/BearAcademy.app/AppIcon76x76#2x~ipad.png
/Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Products/Debug-iphonesimulator/BearAcademy.app/Assets.car
/Users/nes/Library/Developer/Xcode/DerivedData/BearAcademy-cabkimmshebxeicjmqphvvwbpzmc/Build/Intermediates.noindex/BearAcademy.build/Debug-iphonesimulator/BearAcademy.build/assetcatalog_generated_info.plist
Command CompileAssetCatalog failed with a nonzero exit code

Cannot build cordova iOS platform -- error 65 allowProvisioningUpdates

I am getting an error trying to build iOS platform in cordova. I have reinstalled the platform but i get the same error. This works a few day ago
Can you please help me resolve this issue
xcode Version 10.0 (10A255)
my build call..
cordova build ios --release --buildConfig=build.json --device
--buildFlag=-allowProvisioningUpdates --gradleArg=--no-daemon`
Here is error
Error: Error code 65 for command: xcodebuild with args: -
exportArchive,-archivePath,myapp.xcarchive,-exportOptionsPlist,/Users/Documents/Development/mymobile/dev/MobileV2/platforms/ios/exportOptions.plist,-exportPath,/Users/Documents/Development/mymobile/dev/MobileV2/platforms/ios/build/device,-allowProvisioningUpdates`
I have a build.json file that I use for the build
"codeSignIdentity": "iPhone Developer", "developmentTeam": "myid",
"automaticProvisioning": true, "packageType": "app-store"
More --info
2018-10-19 13:01:08.558 xcodebuild[12415:403301] [MT] IDEDistribution:
-[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path
'/var/folders/01/dln33_r97tzb95y8c1scy6bc0000gp/T/RandstadJobs_2018-10-19_13-01-08.558.xcdistributionlogs'.
error: exportArchive: "RandstadJobs.app" requires a provisioning
profile with the Push Notifications feature.
Here an error I see but now sure how to resolve it. I have push enable
in the profile
Error Domain=IDEProvisioningErrorDomain Code=9 ""myapp.app" requires a
provisioning profile with the Push Notifications feature."
UserInfo={NSLocalizedDescription="myapp.app" requires a provisioning
profile with the Push Notifications feature.,
NSLocalizedRecoverySuggestion=Add a profile to the
"provisioningProfiles" dictionary in your Export Options property
list.}
You need to enable push notification in your project in Xcode, then select a provisioning/developer profile. Best is to allow automatic signing and select your Apple identity. It should do the rest on its own.
If you use xcode10, you also need to change the build system from new to legacy
File -> WorkSpace Settings -> Build System: Legacy Build System

Xcode building application from command line

I'm using this script for building application from command line:
#!/bin/bash
TARGET="signtest"
CONFIGURATION="Debug"
SDK="iphoneos"
IDENTITY="iPhone Developer: Marcin Zyga (CLJR93MXJ6)"
KEYCHAIN="/Users/admin/Library/Keychains/login.keychain"
PASSWORD="admin"
security unlock-keychain -p ${PASSWORD} ${KEYCHAIN}
xcodebuild -target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphoneos CODE_SIGN_IDENTITY="${IDENTITY}" PROVISIONING_PROFILE="94D99766-0268-4E0E-B8D1-053063BB2DA1" OTHER_CODE_SIGN_FLAGS="--keychain ${KEYCHAIN}"
I'm trying to compile application and sign it with my provisioning profile. I'm getting:
Build settings from command line:
CODE_SIGN_IDENTITY = iPhone Developer: Marcin Zyga (CLJR93MXJ6)
OTHER_CODE_SIGN_FLAGS = --keychain /Users/admin/Library/Keychains/login.keychain
PROVISIONING_PROFILE = 94D99766-0268-4E0E-B8D1-053063BB2DA1
SDKROOT = iphoneos5.0
=== BUILD NATIVE TARGET signtest OF PROJECT signtest WITH CONFIGURATION Debug ===
Check dependencies
[BEROR]Code Sign error: The identity 'iPhone Developer: Marcin Zyga (CLJR93MXJ6)' doesn't match any valid certificate/private key pair in the default keychain
** BUILD FAILED **
This is when I'm invoking as sudo su - probably I'm missing a valid configuration in my keychain.
When I'm invoking this build script as admin user I've got this:
Build settings from command line:
CODE_SIGN_IDENTITY = iPhone Developer: Marcin Zyga (CLJR93MXJ6)
OTHER_CODE_SIGN_FLAGS = --keychain /Users/admin/Library/Keychains/login.keychain
PROVISIONING_PROFILE = 94D99766-0268-4E0E-B8D1-053063BB2DA1
SDKROOT = iphoneos5.0
=== BUILD NATIVE TARGET signtest OF PROJECT signtest WITH CONFIGURATION Debug ===
Check dependencies
[BEROR]Code Sign error: Provisioning profile '94D99766-0268-4E0E-B8D1-053063BB2DA1' can't be found
** BUILD FAILED **
My provisioning profile definitly exists.
You've got two problems. The first is there's something in Xcode 4 and later that is changing what I believe is the search path or access rights of the command line build settings, because I, ALSO, am failing with the same codesign [BEROR] when building from command line but not Xcode directly.
I wish I knew the answer to the first problem. I've tried explicitly setting the developer identity, using the generic "iPhone Developer", updating the project settings to have the [sdk-iphoneos*]="", etc., and I have to yet discover the solution.
Did this used to work for you and then you did a Mac OS/Xcode update and now it doesn't? That's my dilemma.
ANYWAY, your second problem is easily fixable: Pass the entire path and filename for the PROVISIONING PROFILE, a-la "/Users/zyga/Library/MobileDevice/ProvisioningProfiles/94D99766-0268-4E0E-B8D1-053063BB2DA1.mobileprovision"
...A

Xcode 3.2.5 fail to create IPA file

I'm trying to create an IPA file for my application using XCode 3.2.5 (iOS SDK 4.0). But after doing the "Build and Archive" I try to "Save to disk..." the ipa file and nothing happens. The message "Generating IPA file" just dissapears.
I took a look into the console of the Mac and I think I found the issue but no idea how to fix it. These what I found on the console:
May 13 15:29:58 Jorge-Martin-Garcias-MacBook-Pro Xcode[246]: Running /usr/bin/xcrun with (\n "-sdk",\n iphoneos,\n PackageApplication,\n "-v",\n "/Users/jgarci17/Library/Application Support/Developer/Shared/Archived Applications/16A09235-185F-4F1E-9BFC-A935CAA5699E.apparchive/mWorkf.app",\n "-o",\n "/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa",\n "--sign",\n "iPhone Distribution: MyCompany LLC",\n "--embed",\n "/Users/jgarci17/Library/MobileDevice/Provisioning Profiles/48D38306-E65F-4D2B-A60A-B94CCD3D518A.mobileprovision"\n)
That seems to be fine, but later ...
May 13 15:29:58 Jorge-Martin-Garcias-MacBook-Pro [0x0-0x16016].com.apple.Xcode[246]: Arguments: embed=/Users/jgarci17/Library/MobileDevice/Provisioning Profiles/48D38306-E65F-4D2B-A60A-B94CCD3D518A.mobileprovision verbose=1
==>output_dir=/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa <===
sign=iPhone Distribution: MyCompany LLC
May 13 15:29:58 Jorge-Martin-Garcias-MacBook-Pro [0x0-0x16016].com.apple.Xcode[246]: Output directory: '/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa
As you see the output directory is including the ipa file name ! ... so later when the zip command wants to run, fails:
zip error: Could not create output file (/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa/mWorkf.ipa)
When the correct command should have been:
zip error: Could not create output file (/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa)
Any ideas?
To me it looks like the ipa file is being duplicated when it is being generated. The best thing I could suggest is clearing the archive in the organiser and trying to 'share' the application and re-saving the project.
Also, check all your provisioning profiles are installed in the organiser and the distribution certificate is installed in the keychain because this can also disrupt the exporting of an ipa file.

Resources