w99wen
V2EX  ›  iDev

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

By w99wen at 2016 年 5 月 24 日 · 10927 次点击

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

2 条回复  •  2016-05-25 12:22:27 +08:00
Shane
   1
Shane  
   2016 年 5 月 24 日
iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
© 2026 V2EX · 31ms · 3.9.8.5