kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 473 forks source link

Fix embeddedframework "Create product structure" build fail with xcode5. #160

Closed xiaowei4895 closed 10 years ago

xiaowei4895 commented 10 years ago

It is a logic error in creating embeddedframework structure.

In build_embedded_framework function, the script removes the embeddedframework path at first and create a new one. After that it copies xxx.framework to embededframework folder. But at the second time of building, xxx.framework is only a link. The real data is in embeddedframework. If embeddedframework path is removed first, the result data is gone and link becomes invalid. Then the copy action is failed and an invalid link of xxx.framework left which will cause "create product structure" error during afterward builds.

If invalid xxx.framework link is already exist, it must be removed manually.

kstenerud commented 10 years ago

Great!