thefaj / OpenFlow

CoverFlow API replacement for the iPhone
http://apparentlogic.com/openflow
819 stars 158 forks source link

Unable to build AFOpenFlowDemo with Xcode 4.2 ios 5 #23

Open bromoab opened 12 years ago

bromoab commented 12 years ago

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?

hbobenicio commented 12 years ago

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

logicaroma commented 12 years ago

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

bromoab commented 12 years ago

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.

hbobenicio commented 12 years ago

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