Background:
After pod install with Xcode 14, If there are bundle resource files in the library, an error will be reported during compilation, error: “igning for “xxxxx” requires a development team. Select a development team in the Signing & Capabilities editor.”
Solution:
Option 1:
Set the bundle identifier and team for the pod library that reported the error one by one.
Disadvantages: Our configuration will disappear after each execution of pod install, Need to manually set it again
Option 2:
Add the following configuration in Podfile, add and then re-pod update
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["DEVELOPMENT_TEAM"] = " Your Team ID &# 34;
end
end
end
end
If you don’t want to set a specific team ID, try the following configuration:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
The above solution comes from: https://github.com/CocoaPods/CocoaPods/issues/11402
Read More:
- Error syncing pod, skipping: failed to “StartContainer” for “POD” with Image
- iOS Xcode:Failed to create provisioning profile.
- swift stdlib tool error is reported after xcode upgrade xcode9 1
- Solution to (ERROR: Failed to build gem native extension.) encountered when updating pod
- Solution encountered when updating pod (error: failed to build gem native extension.)
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- pod install error: Oh no, an error occurred. (Ultimate Solution)
- An error occurred when installing vs2017: failed to verify the signature of the installation program list
- Command codesign failed with a nonzero exit code or revoke certificate for IOS / Xcode problems
- How to solve problems like curl: (7) failed to connect to raw.githubusercontent.com Port 443: problem with connection used
- About Xcode command phasescriptexecution failed with a nonzero exit code solution
- How to Solve Unity Package Android Project Error
- Project Error: dyld[77548]: library not loaded: @rpath (IOS pod installed)
- Xcode compilation error: failed to initiate service connection to simulator
- How to Solve All masterha_check_repl Error
- How to solve the failed to start switch root error during centos8.1 startup?
- Xcode Error: Embedded binary’s bundle identifier is not prefixed with the parent app’s bundle identifier
- How to solve the error after Java importing project
- Solution to shell script invocation error during Xcode real machine test
- numpy.core.umath How to solve the problem of failed to import