[IOS] "google/protobuf/Any.pbobjc.h" file not found when building firebase with Unity3D

3,344 views
Skip to first unread message

Loc Nguyen

unread,
Feb 24, 2017, 12:58:11 AM2/24/17
to Firebase Google Group
I had install cocoapods and then build a test project in Unity using firebase newest package

But when I exported into IOS project and run , it had this error for me , did anyone face the same issues ?

/Users/nguyenvinhloc/Desktop/TestLib/TestLibrary/bin/TestFirebase/Pods/Headers/Private/Protobuf/GPBWellKnownTypes.h:44:10: 'google/protobuf/Any.pbobjc.h' file not found

Stewart Miles

unread,
Feb 24, 2017, 11:09:01 AM2/24/17
to fireba...@googlegroups.com
Hi Loc,

The latest Firebase iOS release contained some pods (e.g Remote Config) that depend upon the Protobuf source pod which doesn't compile out of the box with our current Cocoapods integration into Unity.  We have a fix internally that will be released soon.

In the meantime, there are a couple of options:

Change each *Deps.cs file (e.g AppDeps.cs) in your project to pin to version 3.13.0.  This is probably the better option as you don't need to modify your Xcode project each time you export.
For example change the line:
Google.VersionHandler.InvokeStaticMethod(iosResolver, "AddPod", new object[] { "Firebase/Core" }, new Dictionary<string, object>() { { "version", "3.13+" }, { "minTargetSdk", "7.0" } });
to:
Google.VersionHandler.InvokeStaticMethod(iosResolver, "AddPod", new object[] { "Firebase/Core" }, new Dictionary<string, object>() { { "version", "3.13.0" }, { "minTargetSdk", "7.0" } });



Alternatively, you can add GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS to the set of preprocessor symbols in your Xcode project.

Cheers,
Stewart



--
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/fb0a89ff-82d9-4f4f-a302-4844ffcf0eb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gerard

unread,
Feb 24, 2017, 11:54:25 AM2/24/17
to Firebase Google Group
Same issue here. http://stackoverflow.com/questions/42418985/firebase-sdk-for-unity-does-not-compile-in-ios

I sent this error yesterday to the Firebase help center and they are investigating about this.

gab...@ohmybrand.es

unread,
Feb 24, 2017, 11:54:26 AM2/24/17
to Firebase Google Group
I have the same problem! :(


El viernes, 24 de febrero de 2017, 6:58:11 (UTC+1), Loc Nguyen escribió:

Guillaume Reiss

unread,
Feb 25, 2017, 11:22:09 PM2/25/17
to Firebase Google Group
I have the same problem too :/ i tried to modify the line in every  *Deps.cs files as recommanded but the error is still here

Stewart Miles

unread,
Feb 25, 2017, 11:40:16 PM2/25/17
to fireba...@googlegroups.com
Did you replace your xcode project?  If not, you'll continue to see the error.

You can also check the generated Podfile to make sure version 3.13.0 is selected.

e.g

$ cat Podfile
install! 'cocoapods', :integrate_targets => false
platform :ios, '8.0'

target 'Unity-iPhone' do
pod 'Firebase/Core', '3.13.0'
pod 'Firebase/Invites', '3.13.0'
end

Cheers,
Stewart

--
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.

Guillaume Reiss

unread,
Feb 26, 2017, 12:41:43 PM2/26/17
to Firebase Google Group
Hi Stewart,

I deleted the complete xcode project and DerivedData, re-created my unity project, made a new build and i don't have the error anymore :)

And even stranger, when i tried the 2nd time, i didn't change change the version 3.13+ in the files but the error disappeared.

Maybe the "google/protobuf/Any.pbobjc.h" file not found" error happened because i installed Cocoapods and launched my Unity build over an old Xcode project and the Xcode project needed to be completely deleted first.

Anyway it works !

Thanks for your help and have a nice day ! ;)

Guillaume

Le dimanche 26 février 2017 05:40:16 UTC+1, Stewart Miles a écrit :
Did you replace your xcode project?  If not, you'll continue to see the error.

You can also check the generated Podfile to make sure version 3.13.0 is selected.

e.g

$ cat Podfile
install! 'cocoapods', :integrate_targets => false
platform :ios, '8.0'

target 'Unity-iPhone' do
pod 'Firebase/Core', '3.13.0'
pod 'Firebase/Invites', '3.13.0'
end

Cheers,
Stewart
On Sat, Feb 25, 2017 at 7:29 PM, Guillaume Reiss <ick...@gmail.com> wrote:
I have the same problem too :/ i tried to modify the line in every  *Deps.cs files as recommanded but the error is still here

Le vendredi 24 février 2017 06:58:11 UTC+1, Loc Nguyen a écrit :
I had install cocoapods and then build a test project in Unity using firebase newest package

But when I exported into IOS project and run , it had this error for me , did anyone face the same issues ?

/Users/nguyenvinhloc/Desktop/TestLib/TestLibrary/bin/TestFirebase/Pods/Headers/Private/Protobuf/GPBWellKnownTypes.h:44:10: 'google/protobuf/Any.pbobjc.h' file not found

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

george...@amphio.co

unread,
Feb 27, 2017, 2:51:31 PM2/27/17
to Firebase Google Group
I'm still getting the error after following the above. My podfile says version 3.10 for all Firebase dependencies.

Any tips?

George

Gerard

unread,
Feb 28, 2017, 10:22:26 AM2/28/17
to Firebase Google Group, george...@amphio.co
There is a new version of the Firebase SDK for Unity. All working fine for me with that new version. Check it out: https://firebase.google.com/support/release-notes/unity
Reply all
Reply to author
Forward
0 new messages