Problem compiling to simulator in xcode5

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

Yotam Harris
Posts: 16
Joined: 10 Oct 2013, 12:54

Problem compiling to simulator in xcode5

Postby Yotam Harris » 13 Oct 2013, 12:00

when compiling with SmartFox framework and running on a device we can compile and run, but when trying to compile to simulator we get a linker exception:

Code: Select all

duplicate symbol _OBJC_IVAR_$_AddBuddyRequest._name in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(AddBuddyRequest.o)
duplicate symbol _AddBuddyRequest_KEY_BUDDY_NAME in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(AddBuddyRequest.o)
duplicate symbol _OBJC_CLASS_$_AddBuddyRequest in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(AddBuddyRequest.o)
duplicate symbol _OBJC_METACLASS_$_AddBuddyRequest in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(AddBuddyRequest.o)
duplicate symbol _OBJC_CLASS_$_AdminMessageRequest in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(AdminMessageRequest.o)
duplicate symbol _OBJC_METACLASS_$_AdminMessageRequest in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(AdminMessageRequest.o)
duplicate symbol _OBJC_METACLASS_$_ArrayUtil in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(ArrayUtil.o)
duplicate symbol _OBJC_CLASS_$_ArrayUtil in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(ArrayUtil.o)
duplicate symbol _BanMode_BY_ADDRESS in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanMode.o)
duplicate symbol _BanMode_BY_NAME in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanMode.o)
duplicate symbol _OBJC_IVAR_$_BanUserRequest._message in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _OBJC_IVAR_$_BanUserRequest._userId in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _OBJC_IVAR_$_BanUserRequest._banMode in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _OBJC_IVAR_$_BanUserRequest._delay in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _BanUserRequest_KEY_USER_ID in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _BanUserRequest_KEY_MESSAGE in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _BanUserRequest_KEY_DELAY in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _BanUserRequest_KEY_BAN_MODE in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _OBJC_CLASS_$_BanUserRequest in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _OBJC_METACLASS_$_BanUserRequest in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BanUserRequest.o)
duplicate symbol _OBJC_IVAR_$_BaseController._log in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseController.o)
duplicate symbol _OBJC_IVAR_$_BaseController._id in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseController.o)
duplicate symbol _OBJC_CLASS_$_BaseController in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseController.o)
duplicate symbol _OBJC_METACLASS_$_BaseController in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseController.o)
duplicate symbol _OBJC_IVAR_$_BaseEvent._params in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseEvent.o)
duplicate symbol _OBJC_IVAR_$_BaseEvent._type in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseEvent.o)
duplicate symbol _OBJC_CLASS_$_BaseEvent in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseEvent.o)
duplicate symbol _OBJC_METACLASS_$_BaseEvent in:
    /Users/YH/WorkingDirectory/xxxxxx-ios-TempSmartFoxTest/SFS2XAPIIOS.framework/SFS2XAPIIOS(BaseEvent.o)
//...................................//
ld: 870 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


we are running with no mention of SmartFox in our code. just adding the framework in causes it, removing the framework will let us compile to simulator again.
also SmartFox will compile to simulator on an empty project using xcode5.
we have no leads on this, we do not reference SmartFox anywhere in our code and this happens.
davidps
Posts: 11
Joined: 02 Aug 2012, 13:48

Re: Problem compiling to simulator in xcode5

Postby davidps » 13 Oct 2013, 18:20

We get the same linker errors with v1.1.8 on simulator builds with Xcode 5, as I mentioned in this thread: viewtopic.php?f=21&t=16384.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Problem compiling to simulator in xcode5

Postby Lapo » 14 Oct 2013, 09:03

There are lots of problems with XCode 5. Apple has listed a list of known issues:
https://developer.apple.com/library/mac ... 1051-SW241

At the moment we don't recommend to use XCode 5.

We'll work on solving these issues with the next release of the API although some of them might directly depend on Apple's fixes (e.g. at the moment iOS5 applications will crash because of a bug in the compiler itself)

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Problem compiling to simulator in xcode5

Postby Lapo » 10 Nov 2013, 10:46

API 1.2.1 has been released
viewtopic.php?f=21&t=16609
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 19 guests