在我开始将其集成到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文件。我在这里做错了什么?
答案 0 :(得分:0)
尝试提供存档文件名。
xcodebuild -project myproject.xcodeproj -scheme scheme -configuration debug clean archive -archivePath /Users/username/Desktop/myproject.xcarchive DEVELOPMENT_TEAM=Dev_Team_Id