成功生成了 xcarchive 文件。 在由 xcarchive 文件生成 ipa 文件的时候。一直报错:
2016-05-24 16:01:13.177 xcodebuild[76265:10202216] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/tv/l6ghpt294r59fw5tvxpnh92h0000gn/T/Unity-iPhone_2016-05-24_16-01-13.176.xcdistributionlogs'.
2016-05-24 16:01:13.223 xcodebuild[76265:10202216] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/osg/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2016-05-24 16:01:26.825 xcodebuild[76265:10202216] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7ff3ace9d850>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}
error: exportArchive: No applicable devices found.
Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}
** EXPORT FAILED **
请问有知道原因的亲吗?还请不吝赐教
另外。使用的命令如下:
xcodebuild -project ~/client_build/ios_new/Unity-iPhone.xcodeproj CODE_SIGN_IDENTITY="iPhone Distribution: ******" PROVISIONING_PROFILE="********-eb2f-****-ad7c-ba2904c9d395" -sdk iphoneos -scheme Unity-iPhone archive -archivePath ~/client_build/ios_new/aa.xcarchive -configuration Release -destination generic/platform=iOS
xcodebuild -exportArchive -archivePath ~/client_build/ios_new/aa.xcarchive -exportOptionsPlist /Users/osg/workspace/build/iPhone/build/ottoman.plist -exportPath ./
ottoman.plist 文件内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>development</string>
<key>teamID</key>
<string>9CP426****</string>
</dict>
</plist>
1
Shane 2016-05-24 17:59:27 +08:00
|
2
xi_lin 2016-05-25 12:22:27 +08:00 1
|