Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
Sign in to follow this  
derda

libs/frameworks

2 posts in this topic

Recommended Posts

Hi

 

I've added some libs to "external frameworks & libs" in Xcode. Now while compiling it says to not find -L path/is/wrong

 

So how to adjust the -L path for linking in xcode?

 

Are there any differences between libs and framworks? I have to compile it later also on Linux, so thanks for help.

 

Regards Michael

Share this post


Link to post
Share on other sites

Frameworks basically are libraries that you add to your project.

 

To properly use a framework, you must create and initialize at run-time according to the conventional way as described in the Apple docs about Framework bundles.

 

a typical framework bundle should be created as followed:

 

example:

 

MyFramework.framework/
   MyFramework  -> Versions/Current/MyFramework
   Resources    -> Versions/Current/Resources
   Versions/
    A/
	    MyFramework
	    Resources/
		    English.lproj/
			    InfoPlist.strings
		    Info.plist
    Current  -> A

 

Of course this is just a very basic example of a framework bundle structure but it really doesn't get any more difficult than this depending on the complexity of the Framework you want to create yourself.

 

I believe your issue might be the fact that you're just adding in the frameworks into X while they aren't in the conventional framework bundle format that X recognizes. A possible recode of your frameworks into the X format should easily rectify your issues hopefully.

 

If you need any more info on creating your own frameworks in X then you can just click here. http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WhatAreFrameworks.html#//apple_ref/doc/uid/20002303-BBCEIJFI

Share this post


Link to post
Share on other sites

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×