cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kerri Shotts (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12249) Cordova throws an error when building for iOS since updating to Xcode 8.2/iOS SDK 10.2
Date Wed, 14 Dec 2016 16:27:58 GMT

    [ https://issues.apache.org/jira/browse/CB-12249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15748768#comment-15748768
] 

Kerri Shotts commented on CB-12249:
-----------------------------------

Take a look at this article: https://dpogue.ca/articles/cordova-xcode8.html

You should, ideally, have a build.json file with an "ios" entry that links to your developer
team ID. For example:

{code}
{
  "ios": {
    "debug": {
      "developmentTeam": "YOURTEAMID"
    },
    "release": {
      "developmentTeam": "YOURTEAMID",
      "codeSignIdentity": "iPhone Developer",
      "packageType": "ad-hoc|app-store|enterprise"
    }
  }
}
{code}

If you don't have a build.json, the build process is just reusing your signing settings specified
in the project. Which is fine, until you need to remove the platform and add it back for some
reason, at which point you'll have the signing issue again.

> Cordova throws an error when building for iOS since updating to Xcode 8.2/iOS SDK 10.2
> --------------------------------------------------------------------------------------
>
>                 Key: CB-12249
>                 URL: https://issues.apache.org/jira/browse/CB-12249
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.3.1
>         Environment: Xcode 8.2
> Build version 8C38
> Node version: v6.9.1
> Cordova version: 6.4.0
> cordova-ios@4.3.1
>            Reporter: Kelvin Dart
>              Labels: build, ios, ios10
>
> Since updating to Xcode 8.2/iOS SDK 10.2, I seem to be having problems building. The
console is stating:
> === BUILD TARGET MyApp OF PROJECT MyApp WITH CONFIGURATION Debug ===
> Check dependencies
> Signing for "MyApp" requires a development team. Select a development team in the project
editor.
> Code signing is required for product type 'Application' in SDK 'iOS 10.2'
> ** ARCHIVE FAILED **
> The following build commands failed:
> 	Check dependencies
> (1 failure)
> Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/development/src/MyApp/Current/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,MyApp.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/development/src/MyApp/Current/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/development/src/MyApp/Current/platforms/ios/build/sharedpch
> One way to fix it is to open the Xcode project, and disable "Automatic Code Signing".
But not the perfect solution. This was not a problem in previous versions of Xcode, including
Xcode 8.1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message