简体   繁体   中英

iOS: Error while building Xcode Project when using Segment-Firebase in pods

I'm using segment library via CocoaPods. I have another framework target in the app in which I have added these:

target :Model do
    pod 'Segment-Wootric'
    pod 'Segment-Firebase'
end

When I try to build the project I get this error:

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_FIRApp", referenced from: objc-class-ref in SEGFirebaseIntegration.o "_OBJC_CLASS_$_FIROptions", referenced from: objc-class-ref in SEGFirebaseIntegration.o "_OBJC_CLASS_$_FIRAnalytics", referenced from: objc-class-ref in SEGFirebaseIntegration.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I remove this pod: pod 'Segment-Firebase' and do pod install It works fine.

What should I do??

If you are getting any warnings related to linker Flag, I believe I fixed it in past for me by setting up the Linker flag in Target's Build Settings > Linker Flag property . Set the value as $(inherited)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM