Shell Script Invocation Error in Xcode 6

2019-08-06 10:49发布

问题:

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?

回答1:

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.



回答2:

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