Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode9 iOS导出归档文件格式正确时失败_Ios_React Native_Xcode9 - Fatal编程技术网

Xcode9 iOS导出归档文件格式正确时失败

Xcode9 iOS导出归档文件格式正确时失败,ios,react-native,xcode9,Ios,React Native,Xcode9,我有一个iOS应用程序,它正在xcode8(Sierra)和xcode9(High Sierra)上构建 当我执行exportArchive时,它在xcode8上传递,但在xcode9上失败 我的plist中有provisioningProfiles部分,错误的格式是正确的 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www

我有一个iOS应用程序,它正在xcode8(Sierra)和xcode9(High Sierra)上构建

当我执行exportArchive时,它在xcode8上传递,但在xcode9上失败

我的plist中有provisioningProfiles部分,错误的格式是正确的

<?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>enterprise</string>
    <key>teamID</key>
    <string><Our teamID></string>
    <key>signingStyle</key>
    <string>manual</string>
    <key>signingCertificate</key>
    <string><Our signingCertificate></string>
    <key>provisioningProfiles</key>
    <dict>
        <key><Our bundleID></key>
        <string><App Name></string>
    </dict>
</dict>
</plist>

方法
企业
teamID
签约风格
手册
签约证书
供应文件
我有另一个应用程序,我正在建设,一切都很好。xcode8和xcode9。所有的ID都是正确的

这是我得到的错误:

2018-04-11 02:16:07.014 xcodebuild[25609:10463244] [MT] IDEDistribution: Step failed: <IDEDistributionPackagingStep: 0x7fe89376c690>: Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value., NSFilePath=/var/folders/y0/5_70v74n4830lyzmjs08pm4w0000gn/T/ipatool-json-filepath-KoS1w8}
[09:16:07][iOS: Build release version] ** EXPORT FAILED **
[09:16:07][iOS: Build release version] error: exportArchive: The data couldn’t be read because it isn’t in the correct format.
[09:16:07][iOS: Build release version] 
[09:16:07][iOS: Build release version] 
[09:16:07][iOS: Build release version] Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value., NSFilePath=/var/folders/y0/5_70v74n4830lyzmjs08pm4w0000gn/T/ipatool-json-filepath-KoS1w8}
2018-04-11 02:16:07.014 xcodebuild[25609:10463244][MT]IDEDistribution:Step失败::Error Domain=nscocaerordomain code=3840“无值”。UserInfo={NSDebugDescription=No value.,NSFilePath=/var/folders/y0/570v74n4830lyzmjs08pm4w0000gn/T/ipatool-json-filepath-KoS1w8}
[09:16:07][iOS:生成发布版本]**导出失败**
[09:16:07][iOS:Build release version]错误:exportArchive:无法读取数据,因为它的格式不正确。
[09:16:07][iOS:构建发布版本]
[09:16:07][iOS:构建发布版本]
[09:16:07][iOS:Build release version]Error Domain=nscocaerorDomain Code=3840“无值”。UserInfo={NSDebugDescription=No value.,NSFilePath=/var/folders/y0/5_70v74n4830lyzmjs08pm4w0000gn/T/ipatool-json-filepath-KoS1w8}

谢谢。

我遇到了类似的错误,您可以尝试附加以下密钥对。这修正了我的错误

<key>compileBitcode</key>
<false/>
compileBitcode

在我的案例中,rvm存在问题,我按照此博客条目上的说明修复了它:


/var/folders/y0/5_70v74n4830lyzmjs08pm4w0000gn/T/ipatool-json-filepath-KoS1w8
文件中有什么?我搜索时该文件不在那里。在exportOption.plist中添加了上述密钥对,解决了错误。看起来在同一系统上有多个Xcode版本会导致错误。太棒了。你救了我一天。非常感谢!这解决了我的问题。