kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 474 forks source link

what to do with Two Frameworks(One is refed by Another) #176

Open 7934345 opened 10 years ago

7934345 commented 10 years ago

untitled

TestFrame2 ref TestFreme1

When build TestFrame2 I got the error:

UFW (M iphonesimulator): INFO: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/panpan/Desktop/TestFrame2/../TestFrame1/build/Debug-iphoneos/TestFrame1.framework/TestFrame1 (No such file or directory)

I left TestFrame2's Framework Search Paths blank.

How can I solve the problem?

7934345 commented 10 years ago

I'm using XCode 5.1

can anyone help me?

7934345 commented 10 years ago

PhaseScriptExecution Run\ Script /Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Script-A64C3BAB18D2FC3500626122.sh cd /Users/panpan/Desktop/TestFrame2 /bin/sh -c /Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Script-A64C3BAB18D2FC3500626122.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/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Products/Debug-iphonesimulator -filelist /Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Objects-normal/i386/TestFrame2.LinkFileList /Users/panpan/Desktop/TestFrame2/../TestFrame1/build/Debug-iphoneos/TestFrame1.framework/TestFrame1 -o /Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Objects-normal/i386/TestFrame2.ufwbuild UFW (M iphonesimulator): INFO: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/panpan/Desktop/TestFrame2/../TestFrame1/build/Debug-iphoneos/TestFrame1.framework/TestFrame1 (No such file or directory)

UFW (M iphonesimulator): ERROR: Build failed Traceback (most recent call last): File "/Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Script-A64C3BAB18D2FC3500626122.sh", line 812, in run_build() File "/Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Script-A64C3BAB18D2FC3500626122.sh", line 776, in run_build link_local_archs(project) File "/Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Script-A64C3BAB18D2FC3500626122.sh", line 583, in link_local_archs print_and_call(project.get_single_arch_link_command(arch)) File "/Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Script-A64C3BAB18D2FC3500626122.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/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Products/Debug-iphonesimulator', '-filelist', '/Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Objects-normal/i386/TestFrame2.LinkFileList', u'/Users/panpan/Desktop/TestFrame2/../TestFrame1/build/Debug-iphoneos/TestFrame1.framework/TestFrame1', '-o', '/Users/panpan/Library/Developer/Xcode/DerivedData/vczx-bepeaipdjiliisddmcmvcdpvatch/Build/Intermediates/TestFrame2.build/Debug-iphonesimulator/TestFrame2.build/Objects-normal/i386/TestFrame2.ufwbuild']' returned non-zero exit status 1 Command /bin/sh failed with exit code 1

fuggly commented 9 years ago

@7934345 I've got exactly the same issue now with two frameworks, whereas B is using A, however, A is not using B (that would be acircular reference and I don't think that was foreseen anyways). Did you ever solve your problem?

7934345 commented 9 years ago

@fuggly I quite using the framework and translate it to the static library. And with XCode 6, it's possible to build a cocoa touch framework(new feature), give it a go.

:)