Jump to content

  • Log In with Google      Sign In   
  • Create Account


Creating a library


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 walsh06   Members   -  Reputation: 514

Like
0Likes
Like

Posted 20 June 2013 - 04:09 AM

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.



Sponsor:

#2 BitMaster   Crossbones+   -  Reputation: 3007

Like
0Likes
Like

Posted 20 June 2013 - 04:26 AM

"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.

#3 walsh06   Members   -  Reputation: 514

Like
0Likes
Like

Posted 20 June 2013 - 04:52 AM

Ya I did type that and yes its meant to be architecture.



#4 BitMaster   Crossbones+   -  Reputation: 3007

Like
0Likes
Like

Posted 20 June 2013 - 04:55 AM

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



#5 walsh06   Members   -  Reputation: 514

Like
0Likes
Like

Posted 20 June 2013 - 06:04 AM

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?






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS