成功生成了 xcarchive 文件。在生成 ipa 文件的时候出错。

2016-05-24 16:25:12 +08:00
 w99wen

成功生成了 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>

9825 次点击
所在节点    iDev
2 条回复
Shane
2016-05-24 17:59:27 +08:00
xi_lin
2016-05-25 12:22:27 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/280934

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX