Skip to content
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

[Podspec] Explicit setting of 'CFBundleIdentifier' in s.info_plist causes a warning #9536

Closed
giofid opened this issue Feb 14, 2020 · 2 comments · Fixed by #9792
Closed

[Podspec] Explicit setting of 'CFBundleIdentifier' in s.info_plist causes a warning #9536

giofid opened this issue Feb 14, 2020 · 2 comments · Fixed by #9792
Labels
help wanted Help from new or existing contributors would be greatly appreciated!
Milestone

Comments

@giofid
Copy link

giofid commented Feb 14, 2020

As discussed here, when in the .podspec file we explicitly set the bundle identifier in this way

# in .podspec
s.info_plist = {
  'CFBundleIdentifier' => 'com.myorg.mylib'
}

XCode 11 gives a warning

warning: User-supplied CFBundleIdentifier value 'com.myorg.mylib' in the Info.plist must be the same as the PRODUCT_BUNDLE_IDENTIFIER build setting value 'org.cocoapods.mylib'

@dnkoutso
Copy link
Contributor

Probably a minor bug yes, care to make a PR?

@dnkoutso dnkoutso added the help wanted Help from new or existing contributors would be greatly appreciated! label Feb 14, 2020
@amorde
Copy link
Member

amorde commented Feb 17, 2020

For anyone interested in contributing, this is currently set here:

'org.cocoapods.${PRODUCT_NAME:rfc1034identifier}'

This could potentially be moved to somewhere a bit higher level such as here:

def custom_build_settings
settings = super
unless target.build_as_framework?
settings['PRIVATE_HEADERS_FOLDER_PATH'] = ''
settings['PUBLIC_HEADERS_FOLDER_PATH'] = ''
end
settings['PRODUCT_NAME'] = target.product_basename
settings['PRODUCT_MODULE_NAME'] = target.product_module_name
settings['CODE_SIGN_IDENTITY[sdk=appletvos*]'] = ''
settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = ''
settings['CODE_SIGN_IDENTITY[sdk=watchos*]'] = ''
settings['SWIFT_ACTIVE_COMPILATION_CONDITIONS'] = '$(inherited) '
if target.swift_version
settings['SWIFT_VERSION'] = target.swift_version
end
settings
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Help from new or existing contributors would be greatly appreciated!
Projects
None yet
3 participants