I'm on XCode 5.1 with Mk8. I've been using the iOS Universal Framework scripts a couple of years now with a lot of success so far and fuck, hey, that's a cool hack, really :-)
Anyways... I added a new project with two new frameworks. The tree looks like this:
Workspace:
+---- Project:
> uses RMUXKit
> uses RMFoundation
+---- RMUXKit
> uses RMFoundation
+---- RMFoundation
In my XCode settings I used a common "Shared Folder" within DerivedData, however, tried with the default (uniqe folder) as well, didn't help much. I also do not get any warnings about a DervicedFolder path so it doesn't appear anywhere in my search pathes
Anyways, that said, if I try to compile this now, I can see that RMFoundation compiles very well, when it then tries to compile RMUXKit, I get this error below. Does anyone have an idea why the duck it can't find my previously compiled framework? I agree that, seen from a file system level, there isn't any RMFoundation at the location where it looks for it, however, why does it search for it in the build folder, or, rather, why isn't it there anymore?
PhaseScriptExecution Run\ Script /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh
cd /Users/misteli/dev/objc/iPhone/Libraries/RMUXKit
/bin/sh -c /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh
UFW (M iphonesimulator): INFO: Cmd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Products/Debug-iphonesimulator -filelist /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.LinkFileList /Users/misteli/dev/objc/iPhone/Libraries/RMUXKit/../RMFoundation/build/Debug-iphoneos/RMFoundation.framework/RMFoundation -o /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.ufwbuild
UFW (M iphonesimulator): INFO: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/misteli/dev/objc/iPhone/Libraries/RMUXKit/../RMFoundation/build/Debug-iphoneos/RMFoundation.framework/RMFoundation (No such file or directory)
UFW (M iphonesimulator): ERROR: Build failed
Traceback (most recent call last):
File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 812, in
run_build()
File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 776, in run_build
link_local_archs(project)
File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 583, in link_local_archs
print_and_call(project.get_single_arch_link_command(arch))
File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 522, in print_and_call
raise subprocess.CalledProcessError(p.returncode, cmd)
CalledProcessError: Command '['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool', '-static', '-arch_only', 'i386', '-syslibroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk', '-L/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Products/Debug-iphonesimulator', '-filelist', '/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.LinkFileList', u'/Users/misteli/dev/objc/iPhone/Libraries/RMUXKit/../RMFoundation/build/Debug-iphoneos/RMFoundation.framework/RMFoundation', '-o', '/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.ufwbuild']' returned non-zero exit status 1
Command /bin/sh failed with exit code 1
Ah.. I managed to get it working by removing the "RMFOundation" Dependency in RMUXKit... compiled aftereards, now I'm fighting with XCode Integration Server, but that's a different beast ;-)
Hiyas
I'm on XCode 5.1 with Mk8. I've been using the iOS Universal Framework scripts a couple of years now with a lot of success so far and fuck, hey, that's a cool hack, really :-)
Anyways... I added a new project with two new frameworks. The tree looks like this:
+---- Project:
+---- RMUXKit
+---- RMFoundation
In my XCode settings I used a common "Shared Folder" within DerivedData, however, tried with the default (uniqe folder) as well, didn't help much. I also do not get any warnings about a DervicedFolder path so it doesn't appear anywhere in my search pathes
Anyways, that said, if I try to compile this now, I can see that RMFoundation compiles very well, when it then tries to compile RMUXKit, I get this error below. Does anyone have an idea why the duck it can't find my previously compiled framework? I agree that, seen from a file system level, there isn't any RMFoundation at the location where it looks for it, however, why does it search for it in the build folder, or, rather, why isn't it there anymore?
PhaseScriptExecution Run\ Script /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh cd /Users/misteli/dev/objc/iPhone/Libraries/RMUXKit /bin/sh -c /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh
UFW (M iphonesimulator): INFO: Cmd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Products/Debug-iphonesimulator -filelist /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.LinkFileList /Users/misteli/dev/objc/iPhone/Libraries/RMUXKit/../RMFoundation/build/Debug-iphoneos/RMFoundation.framework/RMFoundation -o /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.ufwbuild UFW (M iphonesimulator): INFO: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/misteli/dev/objc/iPhone/Libraries/RMUXKit/../RMFoundation/build/Debug-iphoneos/RMFoundation.framework/RMFoundation (No such file or directory)
UFW (M iphonesimulator): ERROR: Build failed Traceback (most recent call last): File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 812, in
run_build()
File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 776, in run_build
link_local_archs(project)
File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 583, in link_local_archs
print_and_call(project.get_single_arch_link_command(arch))
File "/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Script-984FBA9D19829F11000E6C22.sh", line 522, in print_and_call
raise subprocess.CalledProcessError(p.returncode, cmd)
CalledProcessError: Command '['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool', '-static', '-arch_only', 'i386', '-syslibroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk', '-L/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Products/Debug-iphonesimulator', '-filelist', '/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.LinkFileList', u'/Users/misteli/dev/objc/iPhone/Libraries/RMUXKit/../RMFoundation/build/Debug-iphoneos/RMFoundation.framework/RMFoundation', '-o', '/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/RMUXKit.build/Debug-iphonesimulator/RMUXKit.build/Objects-normal/i386/RMUXKit.ufwbuild']' returned non-zero exit status 1
Command /bin/sh failed with exit code 1