iOS build fails - duplicate symbol _main

23 views
Skip to first unread message

Ilana Loubser

unread,
Nov 21, 2014, 7:41:59 AM11/21/14
to codenameone...@googlegroups.com
Hi,

My iOS debug build on the Codename One build server fails with the following error message:

duplicate symbol _main in:
    /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6274617780767156943xxx/dist/build/EventStreamer.build/Release-iphoneos/EventStreamer.build/Objects-normal/armv7/org_ims_EventStreamer_utils_NumberFormatUtils.o
    /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6274617780767156943xxx/dist/build/EventStreamer.build/Release-iphoneos/EventStreamer.build/Objects-normal/armv7/org_ims_EventStreamer_EventStreamerStub.o
ld: 1 duplicate symbol for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am fairly new to Codename One, but have managed to build this app for iOS previously and install on my iPhone.  More info about the platform I'm using:
  • Netbeans 8.0.1
  • JDK 1.7.0_15-b03
  • The provisioning profile changed recently - another device was added.  I have however tried with both the old one and new one.

Any help would be appreciated!

Ilana



If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

Ilana Loubser

unread,
Nov 21, 2014, 7:56:13 AM11/21/14
to codenameone...@googlegroups.com
I just found the problem (after reading the error message properly!) - I had a test main method in one of the classes.
Reply all
Reply to author
Forward
0 new messages