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

Error in the buildscript when including a real framework as subproject in XCode. #114

Closed Slangen closed 11 years ago

Slangen commented 11 years ago

Hello.

I want to use my real framework as a subproject in XCode. The issue is that i have two build configurations in my framework. To be able to select which one of these that should be used i've had to include a custom build phase in my main project (instead of using Target Dependencies).

Im using this to build my framework:

xcodebuild -scheme MyLib -configuration Release -sdk iphoneos

These are the errors i get:

The following build commands failed: PhaseScriptExecution "Run Script" /Users/*/Company/git/iOS-MainProject/DerivedData/MainProject/Build/Intermediates/MyLib.build/Release-iphonesimulator/MyLib.build/Script-7BB4A82D157893E000C829D4.sh (1 failure) UFW (M iphoneos): ERROR: Build failed Traceback (most recent call last): File "/Users/**/Company/git/iOS-MainProject/DerivedData/MainProject/Build/Intermediates/MyLib.build/Release-iphoneos/MyLib.build/Script-7BB4A82D157893E000C829D4.sh", line 581, in run_build(build_state) File "/Users/**_/Company/git/iOS-MainProject/DerivedData/MainProject/Build/Intermediates/MyLib.build/Release-iphoneos/MyLib.build/Script-7BB4A82D157893E000C829D4.sh", line 535, in run_build run_slavebuild(project) File "/Users/****/Company/git/iOS-MainProject/DerivedData/MainProject/Build/Intermediates/MyLib.build/Release-iphoneos/MyLib.build/Script-7BB4A82D157893E000C829D4.sh", line 495, in run_slave_build print_and_call_slave_build(project.get_slave_project_build_command(), project.other_platform) File "/Users/***/Company/git/iOS-MainProject/DerivedData/MainProject/Build/Intermediates/MyLib.build/Release-iphoneos/MyLib.build/Script-7BB4A82D157893E000C829D4.sh", line 426, in print_and_call_slave_build raise subprocess.CalledProcessError(p.returncode, cmd) Allthough the same command works perfectly in commandline. Then it can build fine.

Slangen commented 11 years ago

Nvm i managed to get around this.

TiTaTomte commented 10 years ago

It would be nice if you tell us how you fixed it.