Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add project reference to Swift iOS XCode project and debug

I am beginning development both an iPhone and iPad product and the two will use a custom framework for core functionality. I have created an iOS Framework project that will contain all the common API's. I would like to be able to debug the framework while debugging the iPhone app. I have added both the iPhone and Framework projects to my work space and linked the framework to my iPhone project. When ever I try to clean or build the project I get this error.

MyFramework is not a valid PRODUCT_NAME for use with framework targets enabling DEFINES_MODULE (name is not a valid C99 extended identifier). This is in XCode 6

Anyone have any ideas what this means?

Thank you.

like image 856
Tony Dail Avatar asked Dec 23 '14 03:12

Tony Dail


People also ask

How do I integrate one project to another file in Xcode?

drag and drop xcode file to another xcode file from finder. It will ask you for copy the file then check the check box and it will copy to your project.

How do you debug an Xcode project?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.


1 Answers

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 it enter image description here

like image 185
Kostiantyn Koval Avatar answered Sep 20 '22 22:09

Kostiantyn Koval