Log in or register to post comments

Adding Vuforia SDK to Xcode from scratch

June 21, 2017 - 2:03pm #1

I have followed this example:

https://library.vuforia.com/articles/Solution/Getting-Started-with-Vuforia-for-iOS-Development

and wowza... it's working perfectly. Now, what I want to do, is to integrate the sdk to a new project from scratch. it's really sad that Vuforia hasn't provided step by step way to do this. Every time somebody asked in the forum how to add to a new project, they are redirect to the samples link. I mean, it's nice but not enough. As a programmer, i'd like to know what I am putting in my app so I can solve problems that might rise in the future.  

I went ahead and did this:

  1. Create a brand new project. 
  2. Copied the build directory into the root of the new project. 
  3. Went to Target / Build Settings / Header Search Paths
    1. Added build/include to both debug & release search paths
  4. Tried to build and bam! tried to import <Vuforia/Vuforia.h> not found...

Is there something that I have missed. Is there other configurations that I need to do? If so, what are the steps? I think really an answer to this question would help many people in the future. 

Thanks. 

Adding Vuforia SDK to Xcode from scratch

November 7, 2017 - 1:19am #4

Great ! It(s work perfectly.

Thanks a lot, I search this for a long time.

It's pretty simple but nobody in Vuforia explain how to do these operations in a simple process...

Adding Vuforia SDK to Xcode from scratch

June 22, 2017 - 9:09am #3

One more last thing: Do not forget to set "Enable Bit Code" to NO

Adding Vuforia SDK to Xcode from scratch

June 21, 2017 - 6:56pm #2

I guess I will answer my own question, in case somebody else needs help on this topic:

  1. Copy the build directory into your project home directory. Where xcode project file is. 
  2. Your click project root > Targets > Build Settings > Header Search Paths >
    1. add "build/include" for both debug and release.
    2. Library search paths add: "build/lib/arm" for both debug and release. 
  3. Go to "Build Phases" tab/link... Link Binary with Library section, add all the libraries including libVuforia.a. Check sample app for libraries to add here. 
  4. Last but NOT least... Make sure whenever you call libraries in your app... like #import <Vuforia/Vuforia.h> etc... the top most file must have an extension *.mm. Not one m, but two ms. like ViewController.mm instead of ViewController.m. (See samples for info). 

Good luck. 

 

Log in or register to post comments