iOS-Framework icon indicating copy to clipboard operation
iOS-Framework copied to clipboard

Framework not able to build for iOS7 64-bit target ($(ARCHS_STANDARD_INCLUDING_64_BIT))

Open S3Paramasivan opened this issue 12 years ago • 7 comments

Hi ,

Thanks for this awesome framework.

we tried to compile our framework to iOS7 but it failed for iOS7 64 bit.

can we know any settings to change in the build arc or script to make work?

Thanks.

S3Paramasivan avatar Oct 01 '13 13:10 S3Paramasivan

It should work, I have been able to build arm64 libraries. I've built all the sample projects in the repro at 64bit and my own static library at 64bit for iOS 7.

What errors did you get?

PaulSolt avatar Oct 09 '13 03:10 PaulSolt

If I select a 32bit simulator and build, it builds. If I use that in another project using the 32bit simulator, it runs. If I use that in another project using the 64bit simulator, it gives a runtime crash for undefined selector.

If I select a 64bit simulator and build, it builds. If I use that in another project using the 64bit emulator, it runs. If I use that in another project using the 32bit simulator, it gives a runtime crash for undefined selector.

It seems that when I build, it is only building for 32bit or 64bit. It does seem to build properly for both Intel and ARM for use on device and simulator, though.

mdznr avatar Dec 12 '13 20:12 mdznr

Sounds like you've stripped the build to only the active architecture. Make sure that setting is not set in your project build settings.

Make sure it's not set for either debug or release in your framework settings. Check all of them.

Paul Solt Sent from my iPhone

On Dec 12, 2013, at 3:33 PM, Matt Zanchelli [email protected] wrote:

If I select a 32bit simulator and build, it builds. If I use that in another project using the 32bit simulator, it runs. If I use that in another project using the 64bit simulator, it gives a runtime crash for undefined selector.

If I select a 64bit simulator and build, it builds. If I use that in another project using the 64bit emulator, it runs. If I use that in another project using the 32bit simulator, it gives a runtime crash for undefined selector.

It seems that when I build, it is only building for 32bit or 64bit. It does seem to build properly for both Intel and ARM for use on device and simulator, though.

— Reply to this email directly or view it on GitHub.

PaulSolt avatar Dec 13 '13 04:12 PaulSolt

I got it working. Thank you, Paul!

mdznr avatar Dec 17 '13 04:12 mdznr

Awesome!

Was the architecture stripping build setting your issue?

-Paul Solt

On Mon, Dec 16, 2013 at 11:44 PM, Matt Zanchelli [email protected]:

I got it working. Thank you, Paul!

— Reply to this email directly or view it on GitHubhttps://github.com/jverkoey/iOS-Framework/issues/61#issuecomment-30725915 .

Paul Solt [email protected] 215-341-0407 (Cell) http://www.PaulSolt.com/

Creative apps for iPhone and iPad: http://www.ArtworkEvolution.com/

PaulSolt avatar Dec 17 '13 04:12 PaulSolt

It was the "Build Active Architecture Only" Build Setting that was causing the issue.

mdznr avatar Dec 17 '13 04:12 mdznr

I just spent about an hour trying to figure out this same problem! And it was fixed by setting "Build Active Architecture Only" to NO for the Debug setting. It took me some time to realize that building the "fat binary" would be accomplished in Debug mode.

I think it would be great to have this explicitly stated in the docs.

Otherwise LOVE this project!

nfarina avatar Jan 12 '14 22:01 nfarina