Add project reference to Swift iOS XCode project and debug Add project reference to Swift iOS XCode project and debug swift swift

Add project reference to Swift iOS XCode project and debug


It means that the name of you framework is not valid.
It coitains some not reserved characters.

- Can't be used in Framework name

Example:

MyFrameroks-iOS - Wrong
MyFrameroksiOS - Correct

Try to rename you framework. Seach for product name in project build setting and change itenter image description here


Just to add to @Kostiantyn Koval's answer: the default value of the Product Name field is $(TARGET_NAME), which takes the value from the Target Name, as implied. By changing that to $(TARGET_NAME:c99extidentifier), you can supply a c99-compatible string that will stay in sync with the Target Name, as the default value does. Apple is using that in e.g. the Product Module Name property (where it appears as $(PRODUCT_NAME:c99extidentifier))

In practice, what this does is to change some incompatible characters, such as whitespaces, with compatible ones, such as underscore in this case.