I was able to fix this issue on fastlane by adding skip_codesigning: true on gym
Adding skip_codesigning: true didn't actually fix the issue.
Entitlments and watch app would not be correctly signed.
What really solved the issue was adding xcargs: "CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=#{options[:teamid]}"
1 Like
This issue still alives on Xcode 14.0.1, and seems to be solved on fastlane with adding xcargs "CODE_SIGN_STYLE=Manual"
to Gymfile.
1 Like
Thanks! That solved the issues for us.
Have you somehow disabled the archiving in a previous Xcode task, or are you not running any "clean", or "build" tasks? Is the action "archive" enough?
I'm asking, because your current version of the Xcode task looks so different from the previous one.
jay.py
(jean-paul)
November 8, 2022, 7:40pm
26
In the initial xcode Task, I used 'packageApp' that will run the ´archive´ mode. But later I figured that I still needed to sign the .ipa with the entitlements. Hence I only needed to archive with extra arguments.
Ideally, one should have a build pipeline that will run a clean-build and test the code, then such pipeline to deploy the .ipa after it's verified.
maximkrouk
(Maxim Krouk)
November 18, 2022, 11:16am
27
We use fastlane match
for signing, so the project should be signed manually by default, so CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=<TEAM_ID>
didn't help.
The project is archived successfully on the local machine, but fails to be archived on GitHub actions....
UPD:
Finally fixed the issue by disabling automatic signing for Pods.xcodeproj
targets (it was enabled by cocoapods generation for xcframeworks)
Here you can find my post_install
Podfile section
opened 11:10AM - 22 Nov 22 UTC
### New Issue Checklist
- [x] Updated fastlane to the latest version
- [x] I… read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)
- [x] I read [docs.fastlane.tools](https://docs.fastlane.tools)
- [x] I searched for [existing GitHub issues](https://github.com/fastlane/fastlane/issues)
### Issue Description
I'm getting [this issue (#17520)](https://github.com/fastlane/fastlane/issues/17520), but with a `Pods.xcodeproj`
>`Seems to be a very old project file format - please open your project file in a more recent version of Xcode`
Related to https://github.com/fastlane/fastlane/issues/20815 (this issue has a warning in title, I found out that a few pods have automatic signing enabled and that causes a signing error which is muted by `xcpretty`)
##### Command executed
```ruby
update_code_signing_settings(
use_automatic_signing: false,
path: "Pods/Pods.xcodeproj"
)
```
##### Complete output when running fastlane, including the stack trace and command used
<!--
You can use `--capture_output` as the last command line argument for many commands to get that collected for you. Otherwise, please do it manually.
Caution: The output of `--capture_output` could contain sensitive data such as application ids, certificate ids, or email addresses. Please make sure you double check the output and replace anything sensitive you don't wish to submit in the issue
-->
<details>
<pre> [REPLACE THIS WITH YOUR INFORMATION] </pre>
</details>
### Environment
swift-driver version: 1.62.15 <details><summary>✅ fastlane environment ✅</summary>
### Stack
| Key | Value |
| --------------------------- | -------------------------------------------------- |
| OS | 12.5 |
| Ruby | 3.1.2 |
| Bundler? | true |
| Git | git version 2.37.1 (Apple Git-137.1) |
| Installation Source | ~/.gem/ruby/3.1.2/bin/fastlane |
| Host | macOS 12.5 (21G72) |
| Ruby Lib Dir | /opt/homebrew/Cellar/ruby/3.1.2_1/lib |
| OpenSSL Version | OpenSSL 1.1.1s 1 Nov 2022 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode-14.1.0.app/Contents/Developer/ |
| Xcode Version | 14.1 |
| Swift Version | 5.7.1 |
### System Locale
| Variable | Value | |
| -------- | ----------- | - |
| LANG | | |
| LC_ALL | en_US.UTF-8 | ✅ |
| LANGUAGE | | |
### fastlane files:
<details><summary>`./fastlane/Fastfile`</summary>
```ruby
default_platform(:ios)
# Builds
lane :just_archive_ad_hoc do
# match was called manually
cocoapods
update_code_signing_settings(
use_automatic_signing: false,
path: "Pods/Pods.xcodeproj"
)
gym(
scheme: ...,
configuration: 'AdHoc',
export_method: 'ad-hoc',
export_options: {
uploadBitcode: false,
uploadSymbols: true,
compileBitcode: false
}
)
end
lane :setup do
create_keychain(
name: "actions_keychain",
password: ...,
default_keychain: true,
unlock: true,
timeout: 3600,
lock_when_sleeps: false
)
end
```
</details>
<details><summary>`./fastlane/Appfile`</summary>
```ruby
app_identifier(...)
apple_id(...)
itc_team_id(...)
team_id(...)
```
</details>
### fastlane gems
| Gem | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.211.0 | ✅ Up-To-Date |
### Loaded fastlane plugins:
| Plugin | Version | Update-Status |
| ----------------------------------------- | ------- | ------------- |
| fastlane-plugin-firebase_app_distribution | 0.3.7 | ✅ Up-To-Date |
| fastlane-plugin-json | 1.1.0 | ✅ Up-To-Date |
<details><summary><b>Loaded gems</b></summary>
| Gem | Version |
| ----------------------------------------- | ------------ |
| error_highlight | 0.3.0 |
| did_you_mean | 1.6.1 |
| bundler | 2.3.26 |
| pathname | 0.2.0 |
| rake | 13.0.6 |
| rexml | 3.2.5 |
| CFPropertyList | 3.0.5 |
| concurrent-ruby | 1.1.10 |
| i18n | 1.12.0 |
| minitest | 5.16.3 |
| tzinfo | 2.0.5 |
| zeitwerk | 2.6.6 |
| activesupport | 6.1.7 |
| public_suffix | 4.0.7 |
| addressable | 2.8.1 |
| httpclient | 2.8.3 |
| json | 2.6.2 |
| algoliasearch | 1.27.5 |
| artifactory | 3.0.15 |
| atomos | 0.1.3 |
| aws-eventstream | 1.2.0 |
| aws-partitions | 1.664.0 |
| aws-sigv4 | 1.5.2 |
| jmespath | 1.6.1 |
| aws-sdk-core | 3.168.1 |
| aws-sdk-kms | 1.59.0 |
| aws-sdk-s3 | 1.117.1 |
| babosa | 1.0.4 |
| claide | 1.1.0 |
| fuzzy_match | 2.0.4 |
| nap | 1.1.0 |
| netrc | 0.11.0 |
| ffi | 1.15.5 |
| ethon | 0.16.0 |
| typhoeus | 1.4.0 |
| cocoapods-core | 1.11.3 |
| cocoapods-deintegrate | 1.0.5 |
| cocoapods-downloader | 1.6.3 |
| cocoapods-plugins | 1.0.0 |
| cocoapods-search | 1.0.1 |
| cocoapods-trunk | 1.6.0 |
| cocoapods-try | 1.2.0 |
| colored2 | 3.1.2 |
| escape | 0.0.4 |
| fourflusher | 2.3.1 |
| gh_inspector | 1.1.3 |
| molinillo | 0.8.0 |
| ruby-macho | 2.5.1 |
| nanaimo | 0.3.0 |
| xcodeproj | 1.22.0 |
| cocoapods | 1.11.3 |
| cocoapods-patch | 1.0.2 |
| colored | 1.2 |
| highline | 2.0.3 |
| commander | 4.6.0 |
| declarative | 0.0.20 |
| digest-crc | 0.6.4 |
| unf_ext | 0.0.8.2 |
| unf | 0.1.4 |
| domain_name | 0.5.20190701 |
| dotenv | 2.8.1 |
| emoji_regex | 3.2.3 |
| excon | 0.94.0 |
| faraday-em_http | 1.0.0 |
| faraday-em_synchrony | 1.0.0 |
| faraday-excon | 1.1.0 |
| faraday-httpclient | 1.0.1 |
| multipart-post | 2.0.0 |
| faraday-multipart | 1.0.4 |
| faraday-net_http | 1.0.1 |
| faraday-net_http_persistent | 1.2.0 |
| faraday-patron | 1.0.0 |
| faraday-rack | 1.0.0 |
| faraday-retry | 1.0.3 |
| ruby2_keywords | 0.0.5 |
| faraday | 1.10.2 |
| http-cookie | 1.0.5 |
| faraday-cookie_jar | 0.0.7 |
| faraday_middleware | 1.2.0 |
| fastimage | 2.2.6 |
| jwt | 2.5.0 |
| memoist | 0.16.2 |
| multi_json | 1.15.0 |
| os | 1.1.4 |
| signet | 0.17.0 |
| googleauth | 1.3.0 |
| mini_mime | 1.1.2 |
| trailblazer-option | 0.1.2 |
| uber | 0.1.0 |
| representable | 3.2.0 |
| retriable | 3.1.2 |
| webrick | 1.7.0 |
| google-apis-core | 0.9.1 |
| google-apis-androidpublisher_v3 | 0.31.0 |
| google-apis-playcustomapp_v1 | 0.12.0 |
| google-apis-iamcredentials_v1 | 0.16.0 |
| google-apis-storage_v1 | 0.19.0 |
| google-cloud-env | 1.6.0 |
| google-cloud-errors | 1.3.0 |
| google-cloud-core | 1.6.0 |
| google-cloud-storage | 1.44.0 |
| mini_magick | 4.11.0 |
| naturally | 2.2.1 |
| optparse | 0.1.1 |
| plist | 3.6.0 |
| rubyzip | 2.3.2 |
| security | 0.1.3 |
| simctl | 1.6.8 |
| terminal-notifier | 2.0.0 |
| unicode-display_width | 1.8.0 |
| terminal-table | 1.8.0 |
| tty-screen | 0.8.1 |
| tty-cursor | 0.7.1 |
| tty-spinner | 0.9.3 |
| word_wrap | 1.0.0 |
| rouge | 2.0.7 |
| xcpretty | 0.3.0 |
| xcpretty-travis-formatter | 1.0.1 |
| fastlane-plugin-firebase_app_distribution | 0.3.7 |
| fastlane-plugin-json | 1.1.0 |
</details>
*generated on:* **2022-11-22**
</details>
miibpa
(Miguel Ibáñez)
December 14, 2022, 3:48pm
28
Is this still happening on Xcode 14.2?
1 Like
miibpa
(Miguel Ibáñez)
December 26, 2022, 12:09pm
29
Confirmed, that this is still happening on Xcode 14.2
2 Likes
david-var
(David V)
January 3, 2023, 10:03pm
30
+1 still facing the same issue with Xcode 14.2.
issue with fastlane gym with SPM, passing arguments didn't worked for us.
still the same issue.
codesigning_identity: "", xcargs: "CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM="
Any other workarounds?
1 Like
Xcode 14.1 (14B47b)
Any arguments helps
I have an iOS app target that embed 3 frameworks + widget target that is also embed those 3 frameworks.
I also tried to add predefined ExportOptions.plist but it doesn't help in any wait it ends up with following export options
{
"provisioningProfiles": {
"com.***": "match AppStore com.***",
"com.***.Widget": "match AppStore "com.***.Widget",
"com.***.WebAPI": "match AppStore com.***.Widget",
"com.***.SharedUI": "match AppStore com.***.Widget",
"com.***.Core": "match AppStore com.***.Widget"
},
"method": "app-store",
"signingStyle": "manual"
}
2 Likes
sversov
(Yevgeniy Prokoshev)
February 17, 2023, 4:26pm
32
Adding
gym(
....
xcargs: "CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM="
)
Resolved the issue for me
miibpa
(Miguel Ibáñez)
March 6, 2023, 9:11am
33
Finally we found a workaround when using match + gym on Fastlane. Using update_code_signing_settings
before match ins what did the trick, the resulting operations look like this:
update_code_signing_settings(
use_automatic_signing: false,
team_id: team_id,
targets: [target],
code_sign_identity: "*****",
profile_name: "your_profile_name",
path: PROJECT_PATH
)
# Signing and Building
match(
username: options[:username],
git_url: certificates_url,
app_identifier: app_identifier,
type: "appstore",
team_id: team_id
)
gym(
project: PROJECT_PATH,
export_method: "app-store",
configuration: "Release",
scheme: scheme,
)
1 Like
I've tried this and checking the .app file for code signing shows its not signed at all. Did you have to resign your .app?
Also where can I find documentations on
"Starting from Xcode14 when codesigning env variables (e.g. PROVISIONING_PROFILE_SPECIFIER
, CODE_SIGN_IDENTITY
) are passed as parameters to xcodebuild, that setting is applied to every target (even the target from SPM package) and this results in codesigning failure as not every SPM target supports codesigning."
Thanks
Mike
August 11, 2023, 2:49pm
35
Is it possible to disable code signing we provide SDK. We dont really need code sign
I have tried the following but it still requires signing on the bundle
xcodebuild \
-workspace $xcworkspace \
-scheme $scheme_name \
-destination "$destination" \
-configuration "CODE_SIGNING_ALLOWED=NO, CODE_SIGNING_REQUIRED=NO" \
Could somebody confirm if it is still an issue on XCode 14.3?
asevko
(Aliaksei Siauko)
November 28, 2023, 10:09am
37
Still having that issue on Xcode 15.0.1
1 Like
devuzan
(Yusuf U.)
March 1, 2024, 11:26am
38
Hi,
Can you explain that variables
$(app-path)
$(export-options)
DEVELOPMENT_TEAM="MyTeamID"
worked for me