Shell Script Invocation Error in Xcode 6

2019-08-06 10:31发布

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?

2条回答
Explosion°爆炸
2楼-- · 2019-08-06 10:52

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.

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-08-06 10:55

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

查看更多
登录 后发表回答