-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Xcode 14 build failed with manual code sign and app resource bundles #11402
Comments
same issue, but you can use XCConfig to resolve like this:
|
@linconz Yes, I solve this issue by using |
just out of curiosity, will this be fixed in Cocoapods in the end or is this just some Xcode 14 Beta 1 bug and we are hoping Apple will fix it in future betas and the bug will magically go away? |
The same problem. |
The Xcode14.0Beta2 fixed the problem. |
Xcode 14 Beta 2 actually resolves problem for me |
Just tried Xcode 14.0 beta 2 (14A5229c) and still the same issue:
|
Fwiw this was not fixed for my project in Xcode 14 beta 2 either, the same issue persists. |
same issue in Xcode 14.0 beta 2 |
After getting the same issue mentioned above, with RealmSwift 10.28.1: Rubén |
I wrote a CocoaPods plugin to solve this problem, everyone is welcome to use cocoapods-pod-sign |
I am still having issues with it using Xcode 14 beta 3. Is there going to be any fix from Cocoapods or are we waiting for Xcode to fix itself? @1677 the plugin is awesome. However, it's not working on Xcode beta 3 :/ |
Automatically get main project Team ID
|
Actually, we can also set the
|
Doesn't work for me when building for a device |
Fix Xcode14 bundle need sign
|
Hey, I can't find any good documentation around |
Issue is still present in CocoaPods 1.11.3 and GM release Xcode 14.0 (14A309). Applying one of these post-install measures would let me begin using Xcode 14 for now, but I'd like to do without a workaround. |
@dnkoutso When can we expect the release of 1.12.0? If the 1.12.0 timeline is not near its end, can this be released as patch to 1.11 instead? |
Add this to pod file
|
Updating Cocoapods to |
Thanks this also fixed AccessibilityResources.bundle' does not contain a bundle executable. |
I'm running into these issues too with Xcode 14 but struggling to update Cocoapods within my project to 1.12.0 If I run How can I update my project to use Cocoapods 1.12.0? |
in your gemfile, don't you have something like this ?
change it to |
So the good news is that Cocoapods 1.12.0 seems to have addressed the iOS build issues we saw in our CI/CD pipeline after trying to bump it to latest XCode and fastlane stable releases. So 🙇 for that 😄 @plindsay I had the same experience, unlike any of my previous cocoapods upgrades to my local dev environment, this one created all sorts of weird behaviors. It wasn't really updating the discovered version in the existing path. I could find the executable and ran it directly with I updated my PATH variable based on some more paths from Oddly enough, in the project repo I needed it in, we also have a Gemfile for use with Running TBH, not sure what's up with that. It's never been an issue before. |
Thanks @julestruong & @tomwanzek - updated the Gemfile to read
Then ran |
That's odd. |
It seems upgrading cocoapods to 1.12.0 fixes the problem for everyone, but my current situation is this: before upgrading cocoapods, we can't even publish the build from our CI to TestFlight, we always get the then we upgraded cocoapds, we can now publish the build from CI to TestFlight, but we will immediately get an email from apple, with exactly the same error message does anyone have the same problem? or anyone has any idea? |
1.12.0 does not fix the problem for everyone. |
I'm currently using App Center as CI, and updating the Cocoapods to 1.12.0 has no effect for me. The post install workarounds also don't work. All these solutions works locally, but not on CI. Any new solutions? |
We use this workaround since day one of XCode 14 and it worked with older Cocoapods as well as 1.12.0. We add these lines on CI to all projects:
|
As a follow to this, we figured out the reason for For our app, we have each app for each env, like so, we changed the Fastfile to update the CFBundleName based on env, and everything started working. |
If you have different signing certificates for different schemes and don't need the pods signed, you can leave the Team in Xcode to none with the Automatically manage signing checked by default. Then add the following config.build_settings... lines to the post_install step in your Pod file, example: post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# disable code signing for pods
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
end
end
end posted here also: |
Even cocoapods 1.12 doesn't work, but this fix works for me |
Fix xcode 14 build with this script: CocoaPods/CocoaPods#11402 (comment)
… for pods (facebook#34826) Summary: This is inspired by the Expo workaround expo/expo@d970a9e to address an issue that cocoapods has with Xcode 14: CocoaPods/CocoaPods#11402 This wants to address this facebook#34673 in a way that we can also cherry-pick on the 0.70 branch. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [iOS] [Fixed] - add xcode 14 workaround (turn off signing resource bundles) for `React-Core` Pull Request resolved: facebook#34826 Test Plan: Tested locally by opening RNTester via Xcode 14.0.1, and targetting my iPhone as device. After applying the patch, the error for React Core AccessibilityResources disappears. Also, added ruby test for new patch. Reviewed By: hramos Differential Revision: D40063828 Pulled By: hramos fbshipit-source-id: e10d5b6a917a6a7cbacd14ecfdac55e60e46c6f8
…igning framework bundles and for future visionOS support (see CocoaPods/CocoaPods#11402 . Thanks AlamoFire )
Report
What did you do?
Manual
.What did you expect to happen?
It should build success.
What happened instead?
Build failed.
CocoaPods Environment
Stack
Installation Source
Plugins
Project that demonstrates the issue
Xcode14ResBundle.zip
The text was updated successfully, but these errors were encountered: