Firebase Community Package Error

Hi, guys.

I want to make an app that shows School’s Timetable with Google Ads.

So, I used Community Package Example.

And it works well on Android.

But, it doesn’t build on iOS.

If i use ‘fuse build -t=iOS -DCOCOAPODS -d’ then Xcode will show me one error.

The error is this :

‘-fobjc-weak is not supported on the current deployment target’

Please tell me about how I fix it.

Hi,

could you please share the code that causes this issue?

Thanks for your attention, Uldis.

My project is in this URL.

Loca Preview, Android Build is working well.

Only iOS build is not working.

Tested you project, worked just fine for me. I’m getting some warnings not related to the issue you reported, but those don’t block the app from working just fine.

Having googled for the -fobjc-weak is not supported on the current deployment target thing, it makes me wonder how you exported the app, and what target you chose?

Or, to put it differently: what XCode version do you have? Which iOS version did you target? Fuse apps can only be deployed to iOS 8.0 and newer.

Thans for your reply.

Before listening your response, I tried many ways.
Reinstall cocoapods, uno claen, project clean. And so on.
But anything didn’t work.
And It doesn’t work now too.

My Xcode version: 9.2
iOS Target: 8.0
Fuse version: 1.6.0

I can’t understand why I got this error :frowning:

Can you show / explain exactly when and where are you getting that error? A screenshot would be nice.

Terminal:

Uno 1.6.0 (build 6434) macOS 10.13 x86_64 40f9a34
Copyright © 2015-2018 Fusetools

Configuring
0.18 s
Target is up-to-date – stopping build (pass --force to override)

Build completed in 0.18 seconds

Opening Xcode

Analyzing dependencies

Downloading dependencies
Using Firebase (4.8.2)
Using FirebaseAnalytics (4.0.9)
Using FirebaseCore (4.0.14)
Using FirebaseInstanceID (2.0.8)
Using Google-Mobile-Ads-SDK (7.27.0)
Using GoogleToolboxForMac (2.1.3)
Using nanopb (0.3.8)
Generating Pods project
Integrating client project

[!] Automatically assigning platform ios with version 8.0 on target TodayScroolTimeTable because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 7 total pods installed.

Xcode screenshot:
https://github.com/HandongKim/TodayScroolTimeTable/blob/master/error.png

I solved the problem. The problem was a problem with the xcodeproj version, and after upgrading, the problem was gone.

Thanks for your kind, Uldis. :slight_smile: