OpenFlow icon indicating copy to clipboard operation
OpenFlow copied to clipboard

Unable to build AFOpenFlowDemo with Xcode 4.2 ios 5

Open bromoab opened this issue 14 years ago • 4 comments

When attempting to build AFOpenFlowDemo the build fails with the following linkage error:

"Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1"

I reran the linker on the command line so I could see stderr and obtained the following results:

iMacCoreDuo 60> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/bromo/Library/Developer/Xcode/DerivedData/AFOpenFlowDemo-ehmqnvjtudtzsubmyfpswdpjidjl/Build/Products/Debug-iphonesimulator -F/Users/bromo/Library/Developer/Xcode/DerivedData/AFOpenFlowDemo-ehmqnvjtudtzsubmyfpswdpjidjl/Build/Products/Debug-iphonesimulator -filelist /Users/bromo/Library/Developer/Xcode/DerivedData/AFOpenFlowDemo-ehmqnvjtudtzsubmyfpswdpjidjl/Build/Intermediates/AFOpenFlowDemo.build/Debug-iphonesimulator/AFOpenFlowDemo.build/Objects-normal/i386/AFOpenFlowDemo.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 /Users/bromo/Library/Developer/Xcode/DerivedData/AFOpenFlowDemo-ehmqnvjtudtzsubmyfpswdpjidjl/Build/Products/Debug-iphonesimulator/libObjectiveFlickr.a -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CFNetwork -o /Users/bromo/Library/Developer/Xcode/DerivedData/AFOpenFlowDemo-ehmqnvjtudtzsubmyfpswdpjidjl/Build/Products/Debug-iphonesimulator/AFOpenFlowDemo.app/AFOpenFlowDemo clang: error: no such file or directory: '/Users/bromo/Library/Developer/Xcode/DerivedData/AFOpenFlowDemo-ehmqnvjtudtzsubmyfpswdpjidjl/Build/Products/Debug-iphonesimulator/libObjectiveFlickr.a

When I looked in the Products directory there were 2 directories Debug and Debug-iphonesimulator/. The Debug directory contained a libObjectiveFlickr.a built for 386 and the Debug-iphonesimulator directory was empty. Any ideas how to fix this issue?

bromoab avatar Nov 23 '11 11:11 bromoab

I'm also interested in building and iOS 5 app using OpenFlow (xcode 4.2). Any progress with that, @bromoab ?

hbobenicio avatar Feb 10 '12 12:02 hbobenicio

Another interested guy calling in :) any ideas on how to fix/ workaround this issue?

logicaroma avatar Feb 11 '12 20:02 logicaroma

On Feb 10, 2012, at 4:32 AM, hbobenicio wrote:

I'm also interested in building and iOS 5 app using OpenFlow (xcode 4.2). Any progress with that, @bromoab ?


Reply to this email directly or view it on GitHub: https://github.com/thefaj/OpenFlow/issues/23#issuecomment-3905346

It turns out that the problems were due to the use of OpenFlickr. Removing OpenFlickr from the demo caused OpenFlow to compile and run without a hitch. I converted OpenFlow to use ARC and I am currently using it without any issues. Since I have no need for OpenFlickr it works for me. I have attached my version of the OpenFlowDemo. Its a bit of a hack but it works.

bromoab avatar Feb 15 '12 07:02 bromoab

Thanks man. I can't see your attachment, though. Maybe I'm missing something... did you attached it on your message?

hbobenicio avatar Apr 02 '12 19:04 hbobenicio