# Issue with collecting certificates

**URL:** <https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908>\
**Category:** Other Issues\
**Tags:** code-signing\
**Created:** [November 24, 2018, 7:40am UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908 "2018-11-24T07:40:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![domwoe](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/domwoe/32/1884_2.png) [@domwoe](https://discuss.bitrise.io/u/domwoe)\
**Post date:** [November 24, 2018, 7:40am UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908/1 "2018-11-24T07:40:06Z")

</div>

Hi,

I’m trying to collect signing certificates for iOS with the codesigndoc tool.

Running tool ends with the following error:  
`failed to analyze archive, error: profile not exists at: ...`

When looking into the log file everything looks fine and it ends with “Archive Succeeded”.  
However I checked the archive manually and the “embedded.mobileprovision” file codesigndoc is looking for is not there.

Do you have an idea whats the problem here?

I’m using XCode 10.1.

Best,  
Dominic

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [November 26, 2018, 1:25pm UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908/2 "2018-11-26T13:25:12Z")

</div>

Hello there @domwoe!

How are you trying to sign the ipa?  
could you send us the url of one of these build’s please so I can have a look at the logs, and maybe find out something?

---

<div class="post-metadata">

**Author:** ![domwoe](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/domwoe/32/1884_2.png) [@domwoe](https://discuss.bitrise.io/u/domwoe)\
**Post date:** [November 26, 2018, 5:20pm UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908/3 "2018-11-26T17:20:36Z")

</div>

Hi,

I’m not sure I understand.  
I’m following the documentation here: [https://devcenter.bitrise.io/code-signing/ios-code-signing/collecting-files-with-codesigndoc/](https://devcenter.bitrise.io/code-signing/ios-code-signing/collecting-files-with-codesigndoc/)

**I execute:**

```
bash -l -c "$(curl -sfL https://raw.githubusercontent.com/bitrise-tools/codesigndoc/master/_scripts/install_wrap-xcode.sh)"

```

**The command ends with the following:**

🔦 Running an Xcode Archive, to get all the required code signing settings…  
$ xcodebuild “-workspace” “/Users/_/Development/_/Projekte/_/_/platforms/ios/Freedge.xcworkspace” “-scheme” “Freedge” “clean” “archive” “-archivePath” “/var/folders/74/kn3bylws3g77w9dffjzcb\_640000gn/T/\_\_codesigndoc\_\_542239333/Freedge.xcarchive”  
…

💡 Saving xcodebuild output into file: /Users/_/Development/_/Projekte/\*/ion-app/platforms/ios/codesigndoc\_exports/xcodebuild-output.log  
failed to analyze archive, error: profile not exists at: /var/folders/74/kn3bylws3g77w9dffjzcb\_640000gn/T/\_\_codesigndoc\_\_542239333/Freedge.xcarchive/Products/Applications/Freedge.app/embedded.mobileprovision

**The end of the log file:**

CodeSign /Users/_/Library/Developer/Xcode/DerivedData/Freedge-gwnolhyzutghobalbxozyqpunbzo/Build/Intermediates.noindex/ArchiveIntermediates/Freedge/InstallationBuildProductsLocation/Applications/Freedge.app (in target: Freedge)  
cd /Users/_/Development/_/Projekte/_/\*/platforms/ios  
export CODESIGN\_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign\_allocate

Signing Identity: “iPhone Distribution: \*”  
Provisioning Profile: "match AppStore _"  
(_)

/usr/bin/codesign --force --sign \* --entitlements /Users/_/Library/Developer/Xcode/DerivedData/Freedge-gwnolhyzutghobalbxozyqpunbzo/Build/Intermediates.noindex/ArchiveIntermediates/Freedge/IntermediateBuildFilesPath/Freedge.build/Release-iphoneos/Freedge.build/Freedge.app.xcent --timestamp=none /Users/_/Library/Developer/Xcode/DerivedData/Freedge-gwnolhyzutghobalbxozyqpunbzo/Build/Intermediates.noindex/ArchiveIntermediates/Freedge/InstallationBuildProductsLocation/Applications/Freedge.app

Validate /Users/_/Library/Developer/Xcode/DerivedData/Freedge-gwnolhyzutghobalbxozyqpunbzo/Build/Intermediates.noindex/ArchiveIntermediates/Freedge/InstallationBuildProductsLocation/Applications/Freedge.app (in target: Freedge)  
cd /Users/_/Development/_/Projekte/_/platforms/ios  
builtin-validationUtility /Users/\*/Library/Developer/Xcode/DerivedData/Freedge-gwnolhyzutghobalbxozyqpunbzo/Build/Intermediates.noindex/ArchiveIntermediates/Freedge/InstallationBuildProductsLocation/Applications/Freedge.app

Touch /Users/_/Library/Developer/Xcode/DerivedData/Freedge-gwnolhyzutghobalbxozyqpunbzo/Build/Intermediates.noindex/ArchiveIntermediates/Freedge/InstallationBuildProductsLocation/Applications/Freedge.app (in target: Freedge)  
cd /Users/_/Development/_/_/platforms/ios  
/usr/bin/touch -c /Users/\*/Library/Developer/Xcode/DerivedData/Freedge-gwnolhyzutghobalbxozyqpunbzo/Build/Intermediates.noindex/ArchiveIntermediates/Freedge/InstallationBuildProductsLocation/Applications/Freedge.app

\*\* ARCHIVE SUCCEEDED \*\*

(I changed some parts to \*)

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [November 28, 2018, 8:51am UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908/4 "2018-11-28T08:51:21Z")

</div>

Hello there! did you build the ipa locally with the proper signings?  
I think you should try that and try the script after that.

---

<div class="post-metadata">

**Author:** ![domwoe](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/domwoe/32/1884_2.png) [@domwoe](https://discuss.bitrise.io/u/domwoe)\
**Post date:** [December 3, 2018, 10:14am UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908/5 "2018-12-03T10:14:12Z")

</div>

Hey @fehersanyi-bitrise,

yes, I did that. I’ve built archives with XCode manually and submitted them to iTunes Connect without any issues.

---

<div class="post-metadata">

**Author:** ![laszlo.pusok](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@laszlo.pusok](https://discuss.bitrise.io/u/laszlo.pusok)\
**Post date:** [December 19, 2018, 4:05pm UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908/6 "2018-12-19T16:05:43Z")

</div>

Hello!  
We need more info to see where the issue is. Can you please provide the following:

- The output of `ls -al /Users/${USER}/Library/MobileDevice/Provisioning\ Profiles`
- The \*.xcarchive file generated, from the directory `/Users/${USER}/Library/Developer/Xcode/DerivedData`
- The xcodeproj file, if you can

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [January 18, 2019, 4:05pm UTC](https://discuss.bitrise.io/t/issue-with-collecting-certificates/6908/7 "2019-01-18T16:05:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
