无法使用Nativescript 3.4.3构建.ipa

时间:2018-08-03 12:55:06

标签: ios xcode nativescript

我已将项目从较早的Nativescript版本升级到3.4.3

我已经在Windows for Android上成功构建了它,用于发布和调试配置。

由于某种原因,我无法为iOS构建.ipa文件。

MacOS v 10.13.6

Xcode v 9.4.1(9F2000)


我是{N}的新手,并且完全不熟悉iOS和Apple的开发,因此我可能会遗漏一些明显的东西。


这是我得到的错误(在一堆警告之后)

Xcode Error

  

2018-08-03 14:48:53.399 xcodebuild [8392:54911] [MT] IDE分发:   -[IDEDistributionLogging _createLoggingBundleAtPath:]:在路径处创建了包   '/var/folders/dx/5k9zt6wd2tn98nvc3wzlblj80000gp/T/bpa_2018-08-03_14-48-53.379.xcdistributionlogs'。   2018-08-03 14:48:55.949 xcodebuild [8392:54911] [MT] IDE分发:   无法生成带有错误的分发项目:错误   Domain = DVTMachOErrorDomain代码= 0“发现了意外的Mach-O标头   代码:0x72613c21“ UserInfo = {NSLocalizedDescription =发现意外   Mach-O标头代码:0x72613c21,NSLocalizedRecoverySuggestion =}   2018-08-03 14:48:55.950 xcodebuild [8392:54911] [MT] IDE分发:   步骤失败::   错误域= DVTMachOErrorDomain代码= 0“发现了意外的Mach-O   标头代码:0x72613c21“ UserInfo = {NSLocalizedDescription =找到了   意外的Mach-O标头代码:0x72613c21,   NSLocalizedRecoverySuggestion =}错误:exportArchive:找到一个   意外的Mach-O标头代码:0x72613c21

     

Error Domain = DVTMachOErrorDomain代码= 0“发现了意外的Mach-O   标头代码:0x72613c21“ UserInfo = {NSLocalizedDescription =找到了   意外的Mach-O标头代码:0x72613c21,   NSLocalizedRecoverySuggestion =}

我已经搜索了unexpected Mach-O header code: 0x72613c21,但我要么无法正确理解步骤,要么无法解决我的问题。我已经检查过this medium post,但它不适用(我复制的捆绑软件资源中没有Frameworks目录)。

如果有帮助,这里是我的链接库和嵌入式框架:

linked libraries and embedded frameworks

我的build.xconfig(我的团队ID是正确的):

build.xconfig

还有我的App_Resources / iOS / info.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>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleDisplayName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1.0.2</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIRequiresFullScreen</key>
    <true/>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>
    <key>NSCalendarsUsageDescription</key>
    <string>This app requires calendar access to function properly. To create social biking events</string>
</dict>
</plist>

0 个答案:

没有答案