> I've been able to reproduce this warning, and the fix will go out with the next version of the iOS client, likely at the start of next week.
>
> Thanks for the heads-up!
>
> Rob
Hi I just wanted to report that I was also able to reproduce the same issue (and an additional crash on my iPad 1 with iOS 5.1.1), by downloading the firechat ios example at:
https://github.com/firebase/firechat-ios
And dropping in the newest fire bast ios SDK:
https://cdn.firebase.com/ObjC/Firebase.framework-LATEST.zip
Then adding:
SystemConfiguration.framework (same directory as Security.framework)
libc++.dylib (same directory as libicucore.dylib)
As per:
https://www.firebase.com/docs/ios-quickstart.html
----------
At this point there are no errors, but the project crashes in main in iOS Simulator 7.
Then I set:
-ObjC (other linker flags, aka OTHER_LD_FLAGS in project settings)
And it runs fine in the simulator, but causes the linker warning.
—————
When I run it on my iPad 1 with iOS 5.1.1 (9B206), it crashes in -[FRepoManager setQueue:] on 0x10ba48:
Firechat`-[FRepoManager setQueue:] at FRepoManager.m:24:
0x10ba30: push {r4, r5, r7, lr}
0x10ba32: mov r4, r0
0x10ba34: movw r0, #55326
0x10ba38: movt r0, #6
0x10ba3c: add r7, sp, #8
0x10ba3e: add r0, pc
0x10ba40: ldr r5, [r0]
0x10ba42: mov r0, r2
0x10ba44: blx 0x16be30 ; symbol stub for: objc_retain
0x10ba48: ldr r1, [r4, r5]
0x10ba4a: str r0, [r4, r5]
0x10ba4c: mov r0, r1
0x10ba4e: pop.w {r4, r5, r7, lr}
0x10ba52: b.w 0x15be64 ; objc_release$shim
Here is the stack:
#0 0x338f7f86 in objc_msgSend ()
#1 0x338f9f94 in objc_retain ()
#2 0x0010ba48 in -[FRepoManager setQueue:] at /Users/vikrum/dev/git/firebase-client-objc/Firebase/Firebase/Core/FRepoManager.m:24
#3 0x340735aa in dispatch_once_f$VARIANT$up ()
#4 0x0010adf6 in _dispatch_once [inlined] at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/dispatch/once.h:68
#5 0x0010ade6 in +[FRepoManager singleton] at /Users/vikrum/dev/git/firebase-client-objc/Firebase/Firebase/Core/FRepoManager.m:37
#6 0x0010b970 in +[FRepoManager getRepo:] at /Users/vikrum/dev/git/firebase-client-objc/Firebase/Firebase/Core/FRepoManager.m:126
#7 0x00123928 in -[Firebase initWithUrl:] at /Users/vikrum/dev/git/firebase-client-objc/Firebase/Firebase/Firebase.m:50
#8 0x00100112 in -[ViewController viewDidLoad] at /Users/zmorris/Development/firechat-ios-master/Firechat/ViewController.m:32
#9 0x33412c8a in -[UIViewController view] ()
#10 0x33411460 in -[UIWindow addRootViewControllerViewIfPossible] ()
#11 0x33403e86 in -[UIWindow _setHidden:forced:] ()
#12 0x334747d4 in -[UIWindow makeKeyAndVisible] ()
#13 0x33411e6c in -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] ()
#14 0x3340b7dc in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] ()
#15 0x333d9ac2 in -[UIApplication handleEvent:withNewEvent:] ()
#16 0x333d9566 in -[UIApplication sendEvent:] ()
#17 0x333d8f3a in _UIApplicationHandleEvent ()
#18 0x339cb22a in PurpleEventCallback ()
#19 0x35cad522 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
#20 0x35cad4c4 in __CFRunLoopDoSource1 ()
#21 0x35cac312 in __CFRunLoopRun ()
#22 0x35c2f4a4 in CFRunLoopRunSpecific ()
#23 0x35c2f36c in CFRunLoopRunInMode ()
#24 0x3340a86a in -[UIApplication _run] ()
#25 0x33407cd4 in UIApplicationMain ()
#26 0x000ffe08 in main at /Users/zmorris/Development/firechat-ios-master/Firechat/main.m:18
#27 0x000ffd90 in start ()
I tried both the iOS 5 and iOS 7 SDKs, thinking maybe it was a lib issue but there was no change. I’m thinking that perhaps firebase.framework is calling something that’s not in iOS 5?
So I was wondering if there is a version of the firebase iOS SDK that is compatible with 5.1, or would it be possible to make the next version support 5.1, or could this possibly be an unrelated issue?
Thanks,
Zack Morris