Codescan cn1lib vs iOS build

89 views
Skip to first unread message

Ivan

unread,
Jan 16, 2017, 4:40:52 PM1/16/17
to CodenameOne Discussions
Hi guys,

after some months I'm going to compile my app for iOS again but build failed with error (see below). Including some minor changes I replaced cn1 internal codescan implementation with codescan.cn1lib. The error message seems to be related to codescan.
Whats wrong with my setup pls?
thanks
Ivan

Undefined symbols for architecture armv7:
  "_ZBarReaderControllerResults", referenced from:
      -[ScanCodeImplExt imagePickerController:didFinishPickingMediaWithInfo:] in ScanCodeImplExt.o
  "_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
      _OBJC_CLASS_$_CVZBarReaderViewControllerExt in CVZBarReaderViewControllerExt.o
  "_OBJC_METACLASS_$_ZBarReaderViewController", referenced from:
      _OBJC_METACLASS_$_CVZBarReaderViewControllerExt in CVZBarReaderViewControllerExt.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **


The following build commands failed:
	Ld build/Build/Intermediates/ArchiveIntermediates/MPMobile/InstallationBuildProductsLocation/Applications/MPMobile.app/MPMobile normal armv7
(1 failure)
Failed xcodebuild step



IDE: Eclipse
Simulator
Device: iPad mini

Shai Almog

unread,
Jan 17, 2017, 12:01:26 AM1/17/17
to CodenameOne Discussions
Hi,
are you using the new API from the cn1lib or are you still relying on the old scan API's?

Ivan

unread,
Jan 17, 2017, 9:55:24 AM1/17/17
to CodenameOne Discussions
yes, we are using the new API from the cn1lib

Dňa utorok, 17. januára 2017 6:01:26 UTC+1 Shai Almog napísal(-a):

Shai Almog

unread,
Jan 17, 2017, 11:37:39 PM1/17/17
to CodenameOne Discussions
What do you have in the build hints? Anything in the ios.* dept?
Something else in the settings?

Ivan

unread,
Jan 18, 2017, 3:52:10 PM1/18/17
to CodenameOne Discussions
build hints:

codename1.arg.android.min_sdk_version=11
codename1.arg.ios.includePush=true
codename1.arg.ios.xcode_version=5.0
codename1.arg.ios.newStorageLocation=true
codename1.arg.ios.keyboardOpen=false
codename1.arg.build.incSources=1
codename1.arg.android.xpermissions=<uses-permission android\:name\="android.permission.READ_CONTACTS" />,<uses-permission android\:name\="android.permission.READ_SMS" />,<uses-permission android\:name\="android.permission.READ_CALL_LOG" />,<uses-permission android\:name\="android.permission.ACCESS_WIFI_STATE"></uses-permission>,<uses-permission android\:name\="android.permission.NFC" />
codename1.arg.android.asyncPaint=true

iOS related settings:

codename1.ios.appid=*********.sk.easysoft.maintplan
codename1.ios.debug.certificate=iosCerts/development_certificate.p12
codename1.ios.certificatePassword=
codename1.ios.debug.certificatePassword=*****
codename1.ios.release.certificate=iosCerts/appstore_certificate.p12
codename1.ios.release.certificatePassword=******
codename1.ios.certificate=
codename1.ios.provision=
codename1.ios.debug.provision=iosCerts/development_provisioning_profile.mobileprovision
codename1.ios.release.provision=iosCerts/production_provisioning_profile.mobileprovision


Shai Almog

unread,
Jan 18, 2017, 11:48:53 PM1/18/17
to CodenameOne Discussions
You are not sending an iphone_old build or something like that by any chance right?

Ivan Ilavsky

unread,
Jan 19, 2017, 2:49:50 AM1/19/17
to codenameone...@googlegroups.com
right, there is no other settings except these I've sent you
What should cause the compilation problem?

Dňa 19.1.2017 5:48 používateľ "Shai Almog" <shai....@gmail.com> napísal:
You are not sending an iphone_old build or something like that by any chance right?

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/Tf7Oq9QNRRk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/48ebf452-d0f3-4e6a-adaf-aeb5ab05f2b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve Hannah

unread,
Jan 19, 2017, 1:53:16 PM1/19/17
to codenameone...@googlegroups.com
I just created a fresh project, and added the codescan library using Codename One settings.  And pasted in my old demo app code that uses this API.  And it built OK.

My guess is that you're using an out-of-date codescan library. You should try to delete it from your lib dir, then re-add it using Codename One settings, and refresh libs.

Should work

Best regards

Steve

On Wed, Jan 18, 2017 at 11:49 PM, Ivan Ilavsky <ivan.i...@gmail.com> wrote:
right, there is no other settings except these I've sent you
What should cause the compilation problem?
Dňa 19.1.2017 5:48 používateľ "Shai Almog" <shai....@gmail.com> napísal:
You are not sending an iphone_old build or something like that by any chance right?

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/Tf7Oq9QNRRk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsubscr...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Ivan

unread,
Jan 19, 2017, 6:08:29 PM1/19/17
to CodenameOne Discussions
you are right! I deleted and reinstalled codescan.cn1lib and it compiles again!
thanks Steve!

Dňa štvrtok, 19. januára 2017 19:53:16 UTC+1 Steve Hannah napísal(-a):
I just created a fresh project, and added the codescan library using Codename One settings.  And pasted in my old demo app code that uses this API.  And it built OK.

My guess is that you're using an out-of-date codescan library. You should try to delete it from your lib dir, then re-add it using Codename One settings, and refresh libs.

Should work

Best regards

Steve
On Wed, Jan 18, 2017 at 11:49 PM, Ivan Ilavsky <ivan.i...@gmail.com> wrote:
right, there is no other settings except these I've sent you
What should cause the compilation problem?
Dňa 19.1.2017 5:48 používateľ "Shai Almog" <shai....@gmail.com> napísal:
You are not sending an iphone_old build or something like that by any chance right?

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/Tf7Oq9QNRRk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CA%2BysJ8z4PMjQ8i8aYfPdyC_j%2BF7FQNYk17yYjUba8Z26Mr2nxA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages