1
votes

I used to compile universal static library with iOS-Universal-Framework, and works fine until I upgrade Xcdoe to 6.

I got the following error

** BUILD SUCCEEDED **

Create universal static library /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphoneos/xxx.framework/xxx /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx -o /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphoneos/xxx.framework/xxx.temp error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: can't open file: /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx (No such file or directory)

If i use Xcode 5 to do the job, it will be fine.

Beside, I selected Device as my compile target, but why the libtool tries to open a file under iphonesimulator folder?

3

3 Answers

3
votes

That means there are no header files in any of your build folders. It may be because you haven't configured your library project to export any header files.

Go to your Project Target >> Build Phases >> + sign >> Add a new build phase

You need to add a Copy files Phase that copies the headers you want to the include folder.

0
votes

Instead of chmod a+x [PATH], I could resolve it with chmod 777 [PATH].

-1
votes

You can use the following command to recursively own all the files and folders in the path like...

chmod -R 777 ./

For more details: Chmod 777 to a folder and all contents