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

Open
S3Paramasivan opened this Issue Oct 1, 2013 · 7 comments

Comments

Projects
None yet
4 participants

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.

Collaborator

PaulSolt commented Oct 9, 2013

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?

mdznr commented Dec 12, 2013

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.

Collaborator

PaulSolt commented Dec 13, 2013

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 notifications@github.com 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.

mdznr commented Dec 17, 2013

I got it working. Thank you, Paul!

Collaborator

PaulSolt commented Dec 17, 2013

Awesome!

Was the architecture stripping build setting your issue?

-Paul Solt

On Mon, Dec 16, 2013 at 11:44 PM, Matt Zanchelli
notifications@github.comwrote:

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
PaulSolt@gmail.com
215-341-0407 (Cell)
http://www.PaulSolt.com/

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

mdznr commented Dec 17, 2013

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

nfarina commented Jan 12, 2014

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment