othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
12/14/13 02:39 PM (11 years ago)

QR plugin and Xcode 5.0.2: failed

I upgraded Xcode version to 5.0.2 and when archiving I get this message: ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/../Downloads/APPName/BT_Plugins/cr_rr_qrreader/libzbar.a file '/Users/../Downloads/APPName/BT_Plugins/cr_rr_qrreader/libzbar.a' for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) Any idea how to solve this. I use the new core 3.0
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/15/13 12:39 AM (11 years ago)
You seem to have an issue with the libzbar.a file. Try downloading fresh source code.
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/15/13 07:47 AM (11 years ago)
I downloaded a fresh source code, cleaned and removed files from ~/Library/Developer/Xcode/DerivedData, and i have the same error. Libzbar.a file seem to be corrupted. (I use buzztouch CP)
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/15/13 08:28 PM (11 years ago)
Try a different browser?
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/16/13 06:23 PM (11 years ago)
unfortunately, no results. I have the same error when building for testing.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/16/13 06:24 PM (11 years ago)
Just replied to your message. Here's my reply: Easy fix - in the readme are instructions for including an additional library that comes with iOS, called "libiconv.dylib". Add that and you should be all good.
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/17/13 03:20 PM (11 years ago)
I had already added this library and get the error (failed to build for ios device). It seems to work only on simulator. I take a screenshot of the xcode project with libiconv.dylib, and the status of the project. The problem is caused by libzbar.a The link for the screenshot: https://dl.dropboxusercontent.com/u/24038698/screencapture.tiff
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/17/13 03:23 PM (11 years ago)
So it works on your simulator but not an actual device? What device are you running on?
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/17/13 03:44 PM (11 years ago)
I failed to build it in xcode when i choose iOS device (set the active scheme). Otherwise, i will use iphone 5, and iphone 4S
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/17/13 04:15 PM (11 years ago)
Okay - I just pushed through an update - download your source code again and give it a try. Hopefully it fixed the issue.
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/17/13 05:15 PM (11 years ago)
I downloaded the fresh code and succeeded to build, i validate the project and all was ok. The problem comes when installing it in iphone 5, I had the first page asking me to begin the scan and when i do this, i had the following message: "missing plugin: the view controller for this plugin was not compiled in the xcode project"
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/17/13 08:47 PM (11 years ago)
Can you show a screenshot of the entire Xcode for that terror-error? That will help Chris to get the whole picture. -- Niraj
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/18/13 04:14 AM (11 years ago)
The problem comes when testing the app in iphone 5 and 4S. The project is basic (one screen : qr plugin). I had the following message when runing it : "missing plugin: the view controller for this plugin was not compiled in the xcode project" So formally i did not have problem with xcode. I think there is a bug related to the new BT 3.0
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/18/13 07:46 AM (11 years ago)
Where are you in the app when you get this? Are you able to scan and this comes up next? Or do you see this instead of a button to start scanning? Can you give a more complete debug output?
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/18/13 09:38 AM (11 years ago)
As i said, the app contain only one screen : qr plugin. When i launch the app in the iphone (not simulator) i have the button to start scanning. And, when i push the button, the camera launch, after about one minute the camera goes off and i have a screen with the following sentence "missing plugin: the view controller for this plugin was not compiled in the Xcode Project "
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/18/13 09:53 AM (11 years ago)
Okay - then you need to include the Custom URL plugin with your project. Then you should be all good.
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
12/18/13 03:37 PM (11 years ago)
Yeah, it finally works. Thank you chris
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.