I am getting the folowing problem multiple times for all packages after running
ionic cap run ios
note: Using global toolchain override ‘Xcode Default’. (in target ‘CapacitorDialog’ from project ‘Pods’)
error: Cannot code sign because the target does not have an Info.plist file and one is not being generated automatically. Apply an Info.plist file to the target using the INFOPLIST_FILE build setting or generate one automatically by setting the GENERATE_INFOPLIST_FILE build setting to YES
Setting these in the podfile post_install did not help
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|
# 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
To make the build success I have to go manually to podfile folder in xcode and turn “generate info.plist File” to YES in packaging section
Any suggestion? Thanks!
ionic info
Ionic:
Ionic CLI : 7.2.0 (/.nvm/versions/node/v20.10.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 7.7.3
Capacitor:
Capacitor CLI : 5.7.0
@capacitor/android : 5.7.0
@capacitor/core : 5.7.0
@capacitor/ios : 5.7.0
Utility:
cordova-res : 0.15.4
native-run : 2.0.1
System:
NodeJS : v20.10.0 (/.nvm/versions/node/v20.10.0/bin/node)
npm : 10.2.3
OS : macOS Unknown
pod --version
1.15.2
gem --version
3.1.6