2016-09-17 83 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进行测试飞行,并且运行良好。