Fix iOS build
This commit is contained in:
parent
fa86787b4a
commit
9957adfe07
12
ios/Podfile
12
ios/Podfile
|
|
@ -77,5 +77,17 @@ post_install do |installer|
|
|||
'PERMISSION_SENSORS=0'
|
||||
]
|
||||
end
|
||||
|
||||
# Workaround https://github.com/flutter/flutter/issues/111475.
|
||||
target_is_resource_bundle = target.respond_to?(:product_type) && target.product_type == 'com.apple.product-type.bundle'
|
||||
target.build_configurations.each do |build_configuration|
|
||||
if target_is_resource_bundle
|
||||
build_configuration.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
||||
build_configuration.build_settings['CODE_SIGNING_REQUIRED'] = 'NO'
|
||||
build_configuration.build_settings['CODE_SIGNING_IDENTITY'] = '-'
|
||||
build_configuration.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = '-'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -36,5 +36,16 @@ end
|
|||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
flutter_additional_macos_build_settings(target)
|
||||
|
||||
# Workaround https://github.com/flutter/flutter/issues/111475.
|
||||
target_is_resource_bundle = target.respond_to?(:product_type) && target.product_type == 'com.apple.product-type.bundle'
|
||||
target.build_configurations.each do |build_configuration|
|
||||
if target_is_resource_bundle
|
||||
build_configuration.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
||||
build_configuration.build_settings['CODE_SIGNING_REQUIRED'] = 'NO'
|
||||
build_configuration.build_settings['CODE_SIGNING_IDENTITY'] = '-'
|
||||
build_configuration.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = '-'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue