• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem while loading libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem while loading libraries


  • Subject: Re: Problem while loading libraries
  • From: Nathan Sims <email@hidden>
  • Date: Wed, 15 Jun 2011 09:48:25 -0700

On Jun 15, 2011, at 4:30 AM, nithesh salian wrote:

 I am facing a problem while running my application. Its throwing the following error message when it tries loading one of the library.

 Library not loaded: 

 Reason: no suitable image found.  

 unknown file type, first eight bytes: 


 My application is compiled with sdk 10.5 whereas the library is compiled with sdk 10.6. Could this be the problem? Am i missing something here.

What architecture are you building on? 
What architectures are you building for? 
What architectures are in the library you're trying to link?

I had a similar problem a while back and it was because the library I was linking in didn't have the architecture I was building for in it. Try doing this with your library:

% file mylibrary.a
mylibrary.a (for architecture x86_64): current ar archive random library
mylibrary.a (for architecture i386):
current ar archive random library

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Problem while loading libraries (From: nithesh salian <email@hidden>)

  • Prev by Date: Preprocessed plist with non-Automatic Profile selected gives Code Signing Error for iOS app
  • Next by Date: iOS: Simulator won't print
  • Previous by thread: Re: Problem while loading libraries
  • Next by thread: Preprocessed plist with non-Automatic Profile selected gives Code Signing Error for iOS app
  • Index(es):
    • Date
    • Thread