2016-09-17 132 views
7

我有一個奇怪的問題,從來沒有發生過我之前。當我嘗試提交我的Xcode8(Swift3)項目的AppStore後,我選擇和確認的組織,Xcode的碰撞與奇怪的問題報告,上面寫着:Xcode 8在提交App Store時崩潰

2016-09-17 12:32:29.604 xcodebuild[4347:14903] [MT] IDEDistribution: - [IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/Degoo-iOS_2016-09- 17_12-32-29.600.xcdistributionlogs'. 
2016-09-17 12:32:31.335 xcodebuild[4347:14903] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks- 11246/IDEFoundation/Distribution/IDEDistributionSummaryStep.m:213 
Details: A method claimed to have succeeded but provided an error! 
Object: <IDEDistributionSummaryStep> 
Method: +_distributionItemsWithoutBitcodeForPlatforms:flattenedDistributionItems:ar chive:withError: 
Thread: <NSThread: 0x7ff94ac07fe0>{number = 1, name = main} 
Hints: None 
Backtrace: 
0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:message Format:arguments:] (in DVTFoundation) 
1 _DVTAssertionHandler (in DVTFoundation) 
2 _DVTAssertionFailureHandler (in DVTFoundation) 
3 +[IDEDistributionSummaryStep _distributionItemsWithoutBitcodeForPlatforms:flattenedDistributionItems:archive:withError:] (in IDEFoundation) 
4 -[IDEDistributionSummaryStep distributionItemsWithoutBitcodeForPlatforms:withError:] (in IDEFoundation) 
5 -[IDEDistributionSummaryStep loadFromPropertyList:error:] (in IDEFoundation) 
6 -[IDEDistributionDriver runWithDestinationPath:error:] (in IDEFoundation) 
7 -[Xcode3CommandLineBuildTool _distributeArchiveAndExit] (in Xcode3Core) 
8 -[Xcode3CommandLineBuildTool run] (in Xcode3Core) 
9 0x00000001047bb202 (in xcodebuild) 
10 start (in libdyld.dylib) 

我也試着使用bitrise上傳應用程序,但我也失敗了,但至少我知道更多一點。下面以一個xcodebuild回溯只是上面崩潰日誌前:

** ARCHIVE SUCCEEDED ** 


Generating exportOptionsPlist... 
Using plist 3.1.0 
Using bundler 1.13.1 
Bundle complete! 1 Gemfile dependency, 2 gems now installed. 
Use `bundle show [gemname]` to see where a bundled gem is installed. 

Configs: 
    * export_options_path: /Users/vagrant/deploy/export_options.plist 
    * archive_path: /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise- xcarchive.akKFUHmn/MyApp-iOS.xcarchive 
    * export_method: app-store 
    * upload_bitcode: yes 
    * compile_bitcode: yes 
    * team_id: 
    * plist_content: 
<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
    <key>method</key> 
    <string>app-store</string> 
    <key>uploadBitcode</key> 
    <true/> 
</dict> 
</plist> 

Exporting IPA from generated Archive... 
$ xcodebuild -exportArchive -archivePath "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise- xcarchive.akKFUHmn/MyApp-iOS.xcarchive" -exportPath "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-xcarchive.Jj61X7yX" -exportOptionsPlist "/Users/vagrant/deploy/export_options.plist" 
+0

同樣的問題,我轉換爲swift 3和xcode 8的項目。你是否也在你的項目中使用Carthage或其他框架? – Bjarte

+0

@Bjarte我使用Cocoapods –

+0

我用修正更新了我的答案 –

回答

0

這是一個長鏡頭,但您使用的顯示和複製集成庫到你的應用程序包的舊風格的方法是什麼?我的構建是這樣做的,但是如果配置是'ReleaseAppStore',它應該會跳過它,這可能是一箇舊的歸檔名稱。我把它拿出來,並能夠驗證並上傳我的檔案。

0

確定發生了什麼事情。 (簡稱版本跳到點2)

  1. 我能去通過審定的第一部分(部分選擇了隊爲二進制和授權之前)只有bitcode enabled = NO和看到的東西奇怪的。我擁有應用程序的應用程序在這裏,但它並不孤單。有.o後綴的類文件在那裏,但它不應該。

  2. 於是我轉身bitcode enabledYES(不需要解決),審查Build phasesCopy bundle resources,發現真的是.m文件類的。所以我刪除它,檢查該類仍然是目標(目標成員資格)的一部分,現在一切正在工作。

也登錄到你的iTunes Connect帳戶,並檢查是否更新後的蘋果開發者計劃許可協議需要審查。如果是,請重新嘗試。

1

我在這個問題上花了幾個小時沒有任何線索。 我決定從一個空白項目重新開始並將所有文件(項目文件除外)+重做配置恢復。 花了我2個小時,但問題現在沒有了。

+0

我也是這樣做的,它對我很有幫助。我不知道有什麼不同,但我發現的唯一的東西是'LIBRARY_SEARCH_PATHS =( \t \t \t \t \t 「$(繼承)」, \t \t \t \t);''成了LD_RUNPATH_SEARCH_PATHS =「$(繼承)@ executable_path/Frameworks「;','objectVersion'從46到48,啓用了模塊,並且鏈接框架(在UIKit和CoreData過去使用的項目常規上)不再需要。 –

0

使用xcode 8版本編譯項目,並使用最新的xcode beta版將ipa發送到商店。或者只是嘗試清理項目和構建文件夾,然後重試。

0

我有一個第三方庫有libswiftRemoteMirror.dylib。從檔案中手動刪除它,並嘗試導出IPA進行測試飛行,並且運行良好。