ionic-team / legacy-ionic-cloud

JavaScript Client for legacy Ionic Cloud services. See Ionic Pro for our new take on the ionic development lifecycle
Apache License 2.0
65 stars 26 forks source link

Ionic Package - Build was working, but no longer [Error code 70 for command: xcodebuild] #208

Open ghost opened 7 years ago

ghost commented 7 years ago

On 4-24-2017, this build was working just fine. Now it is failing with a very odd error. Command I used: "ionic package build ios --noresources --release --profile dev"

certs are still valid and I did not change the Security Profile. I didn't change anything with the Ionic Package settings actually, just a code change.

== END OF MY MESSAGE; ERROR BELOW ==

error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)

Error Domain=IDEDistributionErrorDomain Code=3 "(null)" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={ "<DVTSigningCertificate: 0x7f962568f8a0; name='iPhone Distribution: Lions Den Mobile LLC (GLGDAJ9VWM)', hash='EA3C63274EB2F355AEA849981C75BB42A2DDBC12', serialNumber='3575A07C5F4926AA', certificateKind='1.2.840.113635.100.6.1.4, issueDate='2016-08-19 04:26:16 +0000''>" = { "<IDEDistributionItem: 0x7f96257d3f40 'com.lionsdenmobile.sleepytime' '<DVTFilePath:0x7f9625650840:'/Users/package/workspace/apps-d010f143-20/cordova/platforms/ios/Sleepy Time.xcarchive/Products/Applications/Sleepy Time.app'>'>" = "Error Domain=IDECodesignResolverErrorDomain Code=7 \"No matching provisioning profiles found\" UserInfo={NSLocalizedRecoverySuggestion=None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7f96257f9250; portalTeamID='GLGDAJ9VWM', usingTeamBasedSigning='NO', bundleIdentifier='com.lionsdenmobile.sleepytime', targetName='(null)', provisioningProfilePurpose='1', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n \"beta-reports-active\" = 1;\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}"; }; }}

EXPORT FAILED

Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,Sleepy Time.xcarchive,-exportOptionsPlist,/Users/package/workspace/apps-d010f143-20/cordova/platforms/ios/exportOptions.plist,-exportPath,/Users/package/workspace/apps-d010f143-20/cordova/platforms/ios/build/device

danielsogl commented 7 years ago

Hey @jarodms6, can you post your ionic info output and package.json?

Thank you.

djereg commented 7 years ago

I have a similar error: [Error code 70 for command: xcodebuild], but:

Error Domain=IDEDistributionErrorDomain Code=1 "No valid iOS Distribution signing identities belonging to team X9******T4 were found." UserInfo={NSLocalizedDescription=No valid iOS Distribution signing identities belonging to team X9******T4 were found.}

On 2017-05-03 with same configuration the build was succeeded.

After only the ionic cli, angular, native, etc... was upgraded.

global packages:

    @ionic/cli-utils : 1.1.2
    Cordova CLI      : 6.5.0 
    Ionic CLI        : 3.1.2

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.1.2
    @ionic/cli-plugin-ionic-angular : 1.1.2
    Ionic Framework                 : ionic-angular 3.2.1

System:

    Node       : v7.4.0
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.2 Build version 8E2002 
    ios-deploy : 1.9.0 
    ios-sim    : 5.0.13 
{
    "name": "...",
    "author": "...",
    "homepage": "...",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.1.0",
        "@angular/compiler": "4.1.0",
        "@angular/compiler-cli": "4.1.0",
        "@angular/core": "4.1.0",
        "@angular/forms": "4.1.0",
        "@angular/http": "4.1.0",
        "@angular/platform-browser": "4.1.0",
        "@angular/platform-browser-dynamic": "4.1.0",
        "@fancyapps/fancybox": "3.0.48",
        "@ionic-native/app-rate": "3.9.2",
        "@ionic-native/app-version": "3.9.2",
        "@ionic-native/camera": "3.9.2",
        "@ionic-native/core": "3.9.2",
        "@ionic-native/device": "3.9.2",
        "@ionic-native/facebook": "3.9.2",
        "@ionic-native/geolocation": "3.9.2",
        "@ionic-native/google-analytics": "3.9.2",
        "@ionic-native/launch-navigator": "3.9.2",
        "@ionic-native/network": "3.9.2",
        "@ionic-native/onesignal": "3.9.2",
        "@ionic-native/screen-orientation": "3.9.2",
        "@ionic-native/splash-screen": "3.9.2",
        "@ionic-native/status-bar": "3.9.2",
        "@ionic/storage": "2.0.1",
        "angular2-elastic": "0.13.0",
        "cordova-android": "^6.1.2",
        "cordova-ios": "4.3.1",
        "cordova-plugin-app-version": "^0.1.9",
        "cordova-plugin-apprate": "^1.2.0",
        "cordova-plugin-camera": "^2.4.0",
        "cordova-plugin-compat": "^1.1.0",
        "cordova-plugin-device": "^1.1.5",
        "cordova-plugin-dialogs": "^1.3.3",
        "cordova-plugin-facebook4": "^1.7.4",
        "cordova-plugin-geolocation": "^2.4.2",
        "cordova-plugin-globalization": "^1.0.7",
        "cordova-plugin-google-analytics": "^1.7.9",
        "cordova-plugin-inappbrowser": "^1.7.0",
        "cordova-plugin-ios-non-exempt-encryption": "^1.0.0",
        "cordova-plugin-network-information": "^1.3.2",
        "cordova-plugin-screen-orientation": "^2.0.0",
        "cordova-plugin-splashscreen": "^4.0.2",
        "cordova-plugin-statusbar": "2.2.2",
        "cordova-plugin-whitelist": "1.3.2",
        "cordova-plugin-wkwebview-engine": "1.1.2",
        "cordova-sqlite-storage": "2.0.3",
        "es6-promise-plugin": "git+https://github.com/vstirbu/PromisesPlugin.git",
        "font-awesome": "4.7.0",
        "freewall": "^1.0.8",
        "ionic-angular": "3.2.1",
        "ionic-cache": "2.0.1",
        "ionic-plugin-keyboard": "2.2.1",
        "ionicons": "3.0.0",
        "jquery": "3.1.1",
        "moment": "2.17.1",
        "ng-lazyload-image": "^3.1.0",
        "onesignal-cordova-plugin": "2.0.11",
        "rxjs": "5.1.1",
        "sw-toolbox": "3.6.0",
        "typings": "^2.0.0",
        "zone.js": "^0.8.10"
    },
    "devDependencies": {
        "@ionic/app-scripts": "1.3.7",
        "@ionic/cli-plugin-cordova": "^1.1.2",
        "@ionic/cli-plugin-ionic-angular": "^1.1.2",
        "typescript": "2.2.1"
    },
    "description": "....",
    "cordovaPlugins": [],
    "cordovaPlatforms": [],
    "cordova": {
        "platforms": [
            "android",
            "ios"
        ],
        "plugins": {
            "cordova-plugin-app-version": {},
            "cordova-plugin-apprate": {},
            "cordova-plugin-camera": {
                "CAMERA_USAGE_DESCRIPTION": " ",
                "PHOTOLIBRARY_USAGE_DESCRIPTION": " "
            },
            "cordova-plugin-device": {},
            "cordova-plugin-facebook4": {
                "APP_ID": "...",
                "APP_NAME": "..."
            },
            "cordova-plugin-geolocation": {
                "GEOLOCATION_USAGE_DESCRIPTION": " "
            },
            "cordova-plugin-google-analytics": {},
            "cordova-plugin-inappbrowser": {},
            "cordova-plugin-ios-non-exempt-encryption": {},
            "cordova-plugin-network-information": {},
            "cordova-plugin-screen-orientation": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "cordova-plugin-wkwebview-engine": {},
            "cordova-sqlite-storage": {},
            "ionic-plugin-keyboard": {},
            "onesignal-cordova-plugin": {}
        }
    }
}
djereg commented 7 years ago

Android works.

ghost commented 6 years ago

Let me chime in. The very same error ("Error code 70" and "No valid iOS Distribution signing identities belonging") happened to us. Similarly, there was no change in our configuration it just stopped working.