I'll talk about how to solve this problem on my side:
- The Framework:
- set "$ (SRCROOT) /../ build" in the item "The Path to the products for each configuration" to "Build Settings" page;
- shift + cmd + k, to clean the assembly of frames, then cmd + b restructure;
- The MyApp
- add "$ (SRCROOT) /../ build" an element "search path in the frame" to "Build Settings" page;
- Drag the framework of the framework of the project the product in the "Link Binary With Libraries" on "phases of assembly" page;
- Drag the framework of the framework of the project the product in the "Copy files" on the page "Build Phase" (you can also add an element of "Copy files" click on the upper left part of the "construction phase" page);
Please note that if you are using another framework for a project, and the structure also refers to another, for example, a sample of which I posted in my question, you also need to perform the steps as described above (Steps Framework and App).
Another problem that you will face if you are also using cocoapods in your project, such as my example: after you have completed all the above steps, the XCode on an error in your project framework, for example:
ld: framework is not found Pods_xxx.framework
clang: error: linker command failed with exit code 1 (use -v to display the call)
"Xxx" should be the name of your project. To fix this, you just need to remove Pods_xxx.framework project / common / related structures and libraries. The error will be restored after the restoration project. Here you can find a part of the problem.
ps: After you have installed the pod, in the General / Related structure and the library will Pods_xxx.framework file, so you need to remove it again, if you run the command "pod install"
source share