Sign in to follow this  

Creating a library

This topic is 1671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently trying to create a library for ios development. Im just doing a simple one so far to get it working. Anyway the library is written and I add it into the project and use it. But when I compile Im getting linker errors and warnings. 

 

"file was built for archive which is not the architecture being linked (i386)"

 

This seems to be the root and I know its something to do with using the simulator. So can anyone help out or point me in the right direction at least.

Share this post


Link to post
Share on other sites

"file was built for archive which is not the architecture being linked (i386)"


Is it possible you typed that instead of copying it? Because 'archive' does not make much sense in the context, 'architecture' would make much more so. Looks like the library and the project you are trying to link it into were built for different architectures.

Share this post


Link to post
Share on other sites

Important advise for the future: always copy'n'paste important bits like error messages. Never try to retype them by hand, never paraphrase them.

Share this post


Link to post
Share on other sites

Well thats because this is on my laptop while xcode is open on the mac. Anyway I got it sorted. Follow up question though. I undestand that objective c doesnt support private methods. So how do I restrict access to a method in my library?

Share this post


Link to post
Share on other sites

This topic is 1671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this