XCode build error

Hi guys,

I am trying to put in the .a plugins for Enterprise into xCode. Can’t find much info in this guide

https://docs.coronalabs.com/native/enterprise/setup.html#TOC

I am referring to this thread about where to put the .a files in xCode

https://forums.coronalabs.com/topic/55131-whats-the-steps-to-build-ios-app-using-enterprise-version/

It states to put the .a files (like the “libfacebook.a” file) in the ‘Build Phases -> Link Binary With Libraries’.

This error appears :

ld: library not found for -lfacebook clang: error: linker command failed with exit code 1 (use -v to see invocation) ld: library not found for -lfacebook clang: error: linker command failed with exit code 1 (use -v to see invocation)

.

Am I putting the .a file correctly ?

Check the search paths under your Xcode project’s build settings. Make sure there aren’t any strange quotes about, and that you have a valid search path that contains the necessary framework/library.

Thanks. I manage to figure it out. For those that is facing a similar problem, just do this :

  1. Under ‘Build Settings -> Search Paths -> Framework Search Paths’. Add the folder where the plugins are placed on your Mac.

2) Under ‘Build Settings -> Search Paths -> Library Search Paths’. Add the folder where the plugins are placed on your Mac.

  1. Under ‘Build Phases -> Link Binary With Libraries’. Add the necessary *.a files ( files from the Enterprise daily plugin folder).

.

Some screen shots :

https://www.dropbox.com/s/z0po09uarp5go21/Screen%20Shot%202016-02-19%20at%206.01.40%20PM.png?dl=0

https://www.dropbox.com/s/rgeyagdw6p1l6ku/Screen%20Shot%202016-02-19%20at%206.01.49%20PM.png?dl=0

https://www.dropbox.com/s/zx3c15bbfdfdphl/Screen%20Shot%202016-02-19%20at%206.04.35%20PM.png?dl=0

Check the search paths under your Xcode project’s build settings. Make sure there aren’t any strange quotes about, and that you have a valid search path that contains the necessary framework/library.

Thanks. I manage to figure it out. For those that is facing a similar problem, just do this :

  1. Under ‘Build Settings -> Search Paths -> Framework Search Paths’. Add the folder where the plugins are placed on your Mac.

2) Under ‘Build Settings -> Search Paths -> Library Search Paths’. Add the folder where the plugins are placed on your Mac.

  1. Under ‘Build Phases -> Link Binary With Libraries’. Add the necessary *.a files ( files from the Enterprise daily plugin folder).

.

Some screen shots :

https://www.dropbox.com/s/z0po09uarp5go21/Screen%20Shot%202016-02-19%20at%206.01.40%20PM.png?dl=0

https://www.dropbox.com/s/rgeyagdw6p1l6ku/Screen%20Shot%202016-02-19%20at%206.01.49%20PM.png?dl=0

https://www.dropbox.com/s/zx3c15bbfdfdphl/Screen%20Shot%202016-02-19%20at%206.04.35%20PM.png?dl=0