Warning with latest iOS Firebase.framework

330 views
Skip to first unread message

Tico Ballagas

unread,
Feb 14, 2014, 6:24:12 PM2/14/14
to fireba...@googlegroups.com
ld: warning: instance method 'generateServerValues' in category from Firebase.framework/Firebase(FRepo+Transaction.o) overrides method from class in Firebase.framework/Firebase(FRepo.o)


Rob DiMarco

unread,
Feb 14, 2014, 7:42:22 PM2/14/14
to fireba...@googlegroups.com
Hi Tico -

Thanks for the note - I'll look into it and report back to you on this thread.

Rob DiMarco
[Engineer @ Firebase]


On Fri, Feb 14, 2014 at 3:24 PM, Tico Ballagas <ball...@gmail.com> wrote:
ld: warning: instance method 'generateServerValues' in category from Firebase.framework/Firebase(FRepo+Transaction.o) overrides method from class in Firebase.framework/Firebase(FRepo.o)


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rob DiMarco

unread,
Feb 19, 2014, 1:00:10 PM2/19/14
to fireba...@googlegroups.com
Hi Tico -

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

Zack Morris

unread,
Feb 20, 2014, 5:20:36 PM2/20/14
to fireba...@googlegroups.com
On Feb 19, 2014, at 11:00 AM, Rob DiMarco <r...@firebase.com> wrote:

> Hi Tico -
>
> 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

Michael Lehenbauer

unread,
Feb 20, 2014, 11:04:20 PM2/20/14
to fireba...@googlegroups.com
Hey Zack,

I was able to reproduce an issue when targeting iOS 5.1.  We'll take a look and see if we can get it fixed in the next release.

Thanks for the report!
-Michael


On Thu, Feb 20, 2014 at 2:20 PM, Zack Morris <zmo...@gmail.com> wrote:
On Feb 19, 2014, at 11:00 AM, Rob DiMarco <r...@firebase.com> wrote:

> Hi Tico -
>
> 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.

----------

Logan Wright

unread,
Mar 2, 2014, 2:47:35 PM3/2/14
to fireba...@googlegroups.com
Please notify me when the update is released, I am also having this problem.

Michael Lehenbauer

unread,
Mar 3, 2014, 3:30:34 PM3/3/14
to fireba...@googlegroups.com
Hey guys,

The fix for the generateServerValues warning has just been released. You can grab the latest SDK here: https://cdn.firebase.com/ObjC/Firebase.framework-LATEST.zip

Thanks!
-Michael

Joao Roberto Sampaio

unread,
Apr 29, 2015, 8:14:10 PM4/29/15
to fireba...@googlegroups.com
I am having the same problem right now using the latest Firebase framework on iPad 1 with iOS 5.1.1. When it calls "initWithUrl" it strill crashes as mentioned above. Do you guys have an iOS 5.1.1 compatible framework somewhere?

Thanks

Michael Lehenbauer

unread,
Apr 29, 2015, 8:49:27 PM4/29/15
to fireba...@googlegroups.com
Hi Joao,

Can you provide the exact error you're getting?  This is an old thread and there were several errors / warnings mentioned.

Thanks,
-Michael

Joao Roberto Sampaio

unread,
Apr 29, 2015, 8:54:54 PM4/29/15
to fireba...@googlegroups.com
Hi, Michael


When I make my Firebase app run on my iPad 1 with iOS 5.1.1, as soon as it reaches the line of "initWithUrl", it crashes. I opened a question on StackOverflow about this: http://stackoverflow.com/questions/29936366/firebase-initwithurl-crashes-on-ios-5-1

I tried to load an example app to make sure that it wasn't my app's fault so I downloaded the Firebase Chat app example and, on the same line (initWithUrl), it crashes exactly the same way.

I am using the latest Firebase version, 2.2.2. I tried downgrading to older versions but the problem persists.


--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/jM6Q4uAcoSg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Joao Roberto Sampaio

unread,
Apr 29, 2015, 8:57:42 PM4/29/15
to fireba...@googlegroups.com
Just to paste here the error:


#0  0x33860f86 in objc_msgSend ()
#1  0x33862f94 in objc_retain ()
#2  0x000d26a0 in -[FRepoManager setQueue:] at /Users/mtse/Dev/firebase/firebase-client-objc/Firebase/Firebase/Core/FRepoManager.m:24
#3  0x33fdc5aa in dispatch_once_f$VARIANT$up ()
#4  0x000d1a80 in _dispatch_once [inlined] at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/dispatch/once.h:68
#5  0x000d1a70 in +[FRepoManager singleton] at /Users/mtse/Dev/firebase/firebase-client-objc/Firebase/Firebase/Core/FRepoManager.m:37
#6  0x000e6736 in -[Firebase initWithUrl:] at /Users/mtse/Dev/firebase/firebase-client-objc/Firebase/Firebase/Firebase.m:54
#7  0x000c6f82 in -[AppDelegate application:didFinishLaunchingWithOptions:] at /xxx/AppDelegate.m:25
#8  0x3337acaa in -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] ()
#9  0x333747dc in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] ()
#10 0x33342ac2 in -[UIApplication handleEvent:withNewEvent:] ()
#11 0x33342566 in -[UIApplication sendEvent:] ()
#12 0x33341f3a in _UIApplicationHandleEvent ()
#13 0x3393422a in PurpleEventCallback ()
#14 0x35c16522 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
#15 0x35c164c4 in __CFRunLoopDoSource1 ()
#16 0x35c15312 in __CFRunLoopRun ()
#17 0x35b984a4 in CFRunLoopRunSpecific ()
#18 0x35b9836c in CFRunLoopRunInMode ()
#19 0x3337386a in -[UIApplication _run] ()
#20 0x33370cd4 in UIApplicationMain ()
#21 0x000c778c in main at /xxx/main.m:14

This happens as soon as it reaches the Firebase *ref = [[Firebase alloc] initWithUrl:kFirebaseURL];
 

Michael Lehenbauer

unread,
Apr 29, 2015, 9:27:17 PM4/29/15
to fireba...@googlegroups.com
[Ack, resending since somehow the subject line got dropped.]

Hey Joao,

I synced up with some folks internally and unfortunately we've made code changes that are incompatible with iOS 5.x.  We're not planning to fix this, since usage seems to be very low (Apple lists 98% of users as being on iOS 7+).

You said you tried old versions of our SDK...  How far did you go back?  We have old versions back to 1.0.2 (iOS Changelog).  Perhaps one will work, though I honestly don't know, and unfortunately, I can't even test, since xCode doesn't support the iOS 5.x simulator anymore...

Sorry!
-Michael

Joao Roberto Sampaio

unread,
Apr 29, 2015, 9:31:59 PM4/29/15
to fireba...@googlegroups.com
Hello again, Michael


No problem.. I was using this iPad as a totem app for an event and I was planing to use a native application instead of a web based application (since I have better knowledge on this kind of development instead of the other one). I will try to roll back to the first one and see if this problem persists and then try to go increasing the version. Or else, I will just try to improve the web application and stay with it for a while.


Thanks for your time replying to this!

  

Reply all
Reply to author
Forward
0 new messages