使用 Xcodebuild 构建项目成功但没有 XArchive 文件输出
Building project using Xcodebuild succeeds but no XArchive file output
在我开始将它集成到我的 CI 之前,我试图确保 xcodebuild 命令和归档工作正常。
我正在尝试:
xcodebuild -project myproject.xcodeproj -scheme scheme -configuration debug clean archive -archivePath /Users/username/Desktop/ DEVELOPMENT_TEAM=Dev_Team_Id
在输出文本的末尾,它声明:
CodeSign /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app
cd /Users/username/Documents/Development/appName-iOS
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "iPhone Developer: xxxx"
Provisioning Profile: "xxxx Prov Profile"
(xxxx)
/usr/bin/codesign --force --sign 194C5B1B166CDFB65B71CC1F20E1BAE1D9FA41F9 --entitlements /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/IntermediateBuildFilesPath/appName.build/Release-iphoneos/appName.build/appName-ios.app.xcent --timestamp=none /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app
Validate /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app
cd /Users/username/Documents/Development/appName-iOS
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PRODUCT_TYPE=com.apple.product-type.application
builtin-validationUtility /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app -validate-for-store
Touch /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/BuildProductsPath/Release-iphoneos/appName-ios.app.dSYM
cd /Users/username/Documents/Development/appName-iOS
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/touch -c /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/BuildProductsPath/Release-iphoneos/appName-ios.app.dSYM
** ARCHIVE SUCCEEDED **
但是我指定的目录下没有xarchive文件。我在这里做错了什么?
只需给出存档文件名即可。
xcodebuild -project myproject.xcodeproj -scheme scheme -configuration debug clean archive -archivePath /Users/username/Desktop/myproject.xcarchive DEVELOPMENT_TEAM=Dev_Team_Id
在我开始将它集成到我的 CI 之前,我试图确保 xcodebuild 命令和归档工作正常。
我正在尝试:
xcodebuild -project myproject.xcodeproj -scheme scheme -configuration debug clean archive -archivePath /Users/username/Desktop/ DEVELOPMENT_TEAM=Dev_Team_Id
在输出文本的末尾,它声明:
CodeSign /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app
cd /Users/username/Documents/Development/appName-iOS
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "iPhone Developer: xxxx"
Provisioning Profile: "xxxx Prov Profile"
(xxxx)
/usr/bin/codesign --force --sign 194C5B1B166CDFB65B71CC1F20E1BAE1D9FA41F9 --entitlements /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/IntermediateBuildFilesPath/appName.build/Release-iphoneos/appName.build/appName-ios.app.xcent --timestamp=none /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app
Validate /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app
cd /Users/username/Documents/Development/appName-iOS
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PRODUCT_TYPE=com.apple.product-type.application
builtin-validationUtility /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/InstallationBuildProductsLocation/Applications/appName-ios.app -validate-for-store
Touch /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/BuildProductsPath/Release-iphoneos/appName-ios.app.dSYM
cd /Users/username/Documents/Development/appName-iOS
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/touch -c /Users/username/Library/Developer/Xcode/DerivedData/appName-crjnvfmiardnqxehnyeexizqofsv/Build/Intermediates/ArchiveIntermediates/appName/BuildProductsPath/Release-iphoneos/appName-ios.app.dSYM
** ARCHIVE SUCCEEDED **
但是我指定的目录下没有xarchive文件。我在这里做错了什么?
只需给出存档文件名即可。
xcodebuild -project myproject.xcodeproj -scheme scheme -configuration debug clean archive -archivePath /Users/username/Desktop/myproject.xcarchive DEVELOPMENT_TEAM=Dev_Team_Id