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

Could not build module 'Foundation' in xcode5 #147

Closed dehengxu closed 10 years ago

dehengxu commented 10 years ago

Use template create a new Rake framework target, this error appear then. It's still exist now.

dehengxu commented 10 years ago

I run the same project in xcode4.6, everything go well.

ghost commented 10 years ago

On Xcode5 for iOS7,in the user project get error "Undefined symbols for architecture x86_64", It can't support? Help me, please.

dehengxu commented 10 years ago

If you retain xcode4.6, I think you can use xcode4.6 to build framework. It also can be used in xcode5.

kstenerud commented 10 years ago

Can you provide steps to reproduce the error? I've tried making a new fake framework in Xcode 5 and archiving, and it seems to work.

dehengxu commented 10 years ago

Sorry, my mention missed some steps.

My steps is: 1st.Create a fake framework. 2nd.Create a middle library project.(If I use the framework created in step one in my application project, it goes well, no problem.) 3rd: Create a application project depend on library created in step two.

Do I use fake framework correctly?

then I build application , it prompt the error.

dehengxu commented 10 years ago

I found only when I disconnect device and choose target device as iOS device, it prompt error :<CoreFoundation/CoreFoundation.h> file not found. When I connect device only choose upper device icon, it goes well, the other icon prompt the same error. Obviously the device configuration cause the error. I use simulator runs no error.

dehengxu commented 10 years ago

I solve this problem, because I delete CoreFoundation.framework from iOS SDK by mistake, so simultaor compile, link well, but device compile error for CoreFoundation.h not found. :-(

Thanks everybody. I wish this will help others.