Xcode 6 warning with custom iOS framework: PRODUCT_MODULE_NAME could not be overridden for target environment 'MyFramework'

Created an empty framework in Xcode 6.1 for the Swift language and got this build warning.

warning: PRODUCT_MODULE_NAME may not be overridden for framework target 'MyFramework'

      

+3


source to share


2 answers


It turns out that I added the "Product Module Name" build parameter at the project level, and this was overriding the product module name in my new structure. I have 4 goals: setting, setting and 2 test goals, and I didn't want to deal with 4 different bridge headers and generated headers for Swift code.



The answer was to explicitly enter the "Product Module Name" build parameter for my new target environment using the correct frame name. An alternative would be to not use the project level build setting and add it as a target level build setting for each target.

+7


source


If anyone is facing this problem in the same way as Xcode 9.2, my problem is that I am setting the override to PRODUCT_MODULE_NAME

. The setting you want to change is PRODUCT_NAME

(the first one is the default).



0


source







All Articles