简体   繁体   中英

Error while running ionic cordova build ios --prod

I'm having this error while trying to deploy angular ionic app to ipa. After i run 'ionic cordova build ios --prod', these errors appear. Please help me to solve these errors. P/s: I'm using Ionic 4 and Xcode 9.2. 在此处输入图片说明

在此处输入图片说明

This is my project.pbxproj file:

// !$*UTF8*$!
{
    archiveVersion = 1;
    classes = {
    };
    objectVersion = 52;
    objects = {

...

            buildSettings = {
                ALWAYS_SEARCH_USER_PATHS = NO;
                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
                CLANG_ENABLE_MODULES = YES;
                CLANG_ENABLE_OBJC_ARC = YES;
                COPY_PHASE_STRIP = NO;
                GCC_DYNAMIC_NO_PIC = NO;
                GCC_OPTIMIZATION_LEVEL = 0;
                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                GCC_PREFIX_HEADER = "MyApp/MyApp-Prefix.pch";
                GCC_THUMB_SUPPORT = NO;
                GCC_VERSION = "";
                INFOPLIST_FILE = "MyApp/MyApp-Info.plist";
                IPHONEOS_DEPLOYMENT_TARGET = 11.0;
                LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
                PRODUCT_BUNDLE_IDENTIFIER = io.ionic.starter;
                PRODUCT_NAME = "$(TARGET_NAME)";
                TARGETED_DEVICE_FAMILY = "1,2";
            };
            name = Debug;
        };
        1D6058950D05DD3E006BFB54 /* Release */ = {
            isa = XCBuildConfiguration;
            baseConfigurationReference = 3047A5101AB8059700498E2A /* build-release.xcconfig */;
            buildSettings = {
                ALWAYS_SEARCH_USER_PATHS = NO;
                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
                CLANG_ENABLE_MODULES = YES;
                CLANG_ENABLE_OBJC_ARC = YES;
                COPY_PHASE_STRIP = YES;
                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                GCC_PREFIX_HEADER = "MyApp/MyApp-Prefix.pch";
                GCC_THUMB_SUPPORT = NO;
                GCC_VERSION = "";
                INFOPLIST_FILE = "MyApp/MyApp-Info.plist";
                IPHONEOS_DEPLOYMENT_TARGET = 11.0;
                LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
                PRODUCT_BUNDLE_IDENTIFIER = io.ionic.starter;
                PRODUCT_NAME = "$(TARGET_NAME)";
                TARGETED_DEVICE_FAMILY = "1,2";
            };
            name = Release;
        };
        C01FCF4F08A954540054247B /* Debug */ = {
            isa = XCBuildConfiguration;
            baseConfigurationReference = 3047A5111AB8059700498E2A /* build.xcconfig */;
            buildSettings = {
                ...
                WK_WEB_VIEW_ONLY = 1;
                IPHONEOS_DEPLOYMENT_TARGET = 11.0;
            };
            name = Debug;
        };
        .....

try to use the latest version of Xcode.

  1. ionic cordova platform remove ios
  2. ionic cordova platform add ios
  3. ionic cordova build ios

Make sure you have signed your app to right team and run pod install inside platform/ios if you use some custom plugin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM