Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gRPC-Core Apple Mach O-Linker Errors after Xcode 9 Update #423

Closed
famAlex opened this issue Nov 3, 2017 · 10 comments
Closed

gRPC-Core Apple Mach O-Linker Errors after Xcode 9 Update #423

famAlex opened this issue Nov 3, 2017 · 10 comments
Assignees

Comments

@famAlex
Copy link

famAlex commented Nov 3, 2017

Hello there,
starting with a clean new project, I used cocoapods to install the following:

`platform :ios, '8.0'
target 'My App' do
use_frameworks!

Pods for My app

pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'FirebaseUI/Auth', '~> 4.0'
pod 'FirebaseUI/Google', '~> 4.0'
pod 'FirebaseUI/Phone', '~> 4.0'

`

everything works fine, but adding pod 'FirebaseFirestore', '~> 0.9' results on errors you can see below.

schermata 2017-11-03 alle 12 15 48

I tried with several combinations of:
deleting Derived Data,
Clean + Clean Build Folder
Enable Bitcode --> No

but nothing changed. Anyone else is experiencing the same issue or maybe am I making something wrong?
Kind regards
Alessandro

  • Xcode version: 9.0 and 9.1
  • Firebase SDK version: 4.5
  • Firebase Component: _____ (Auth, Core, Firestore, FirebaseUI)
  • Component version: 0.9.1
@paulb777
Copy link
Member

paulb777 commented Nov 3, 2017

Those missing symbols should be built as part of the grpc-Core build. For example -

Pods/gRPC-Core/src/core/lib/support/string.c:int gpr_ltoa(long value, char *string) {

What version of CocoaPods are you using? At least 1.2.0 is required.

pod --version

@famAlex
Copy link
Author

famAlex commented Nov 3, 2017

my pod version is 1.2.0

@goalguy10
Copy link

I am having the same exact issue. My pod version is 1.3.1

@paulb777 paulb777 changed the title Unable to integrate Firestore with cocoapods gRPC-Core Apple Mach O-Linker Errors after Xcode 9 Update Nov 3, 2017
@morganchen12
Copy link
Contributor

Can one of you upload a project that reproduces this?

@famAlex
Copy link
Author

famAlex commented Nov 3, 2017

https://mega.nz/#!E9lVVLZJ!Q4uvfnYtOK6h9QoVCXkAOe7L2eGBeCYC0FRZAqr2W0U

I just created a new project,
pod init,
added the pods ,
pod install
and run

But if you remove firestore pod, everything works again

@lucaventura
Copy link

lucaventura commented Nov 3, 2017

I can confirm I'm having this same problem with both CocoaPods v. 1.2.0 and 1.3.1 and Xcode v. 9.1.

@Lukaris
Copy link

Lukaris commented Nov 3, 2017

I guess its just missing some coding in the grpc-core .. I have the same problem XCode 9.2 Beta

@morganchen12
Copy link
Contributor

morganchen12 commented Nov 3, 2017

Looks like an issue in gRPC-Core. For the time being you can work around this by putting

pod 'gRPC', `1.6.5`

in your Podfile.

@muxi
Copy link

muxi commented Nov 3, 2017

gRPC has resolved the problem; the problem was due to inadvertent duplicated named ref 'v1.7.0' in gRPC repo. For those of you who had this problem, you can clean Cocoapods cache on gRPC related pods (gRPC-Core, gRPC, gRPC-ProtoRPC, gRPC-RxLibrary) then pod install again.

@paulb777
Copy link
Member

paulb777 commented Nov 4, 2017

gRPC 1.7.1 is now available that fixes the issue.

Thanks to everyone for the reports and to @muxi for the quick turnaround on the fix!

@paulb777 paulb777 closed this as completed Nov 4, 2017
@firebase firebase locked and limited conversation to collaborators Nov 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants