firebase / quickstart-ios

Firebase Quickstart Samples for iOS
https://firebase.google.com
Apache License 2.0
2.79k stars 1.47k forks source link

Could not build module 'Firebase' #727

Closed anonym24 closed 5 years ago

anonym24 commented 5 years ago

Screenshot at Jun 09 17-36-30

image

I tried with original podfile:

# Firebase Cloud Messaging (FCM)

use_frameworks!
platform :ios, '8.0'

pod 'Firebase/Analytics'
pod 'Firebase/Messaging'

target 'MessagingExample' do
end
target 'MessagingExampleSwift' do
end
target 'MessagingExampleTests' do
end

and with edited:

# Firebase Cloud Messaging (FCM)

use_frameworks!
platform :ios, '8.0'

pod 'Firebase/Core'
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'

target 'MessagingExample' do
    pod 'Firebase/Core'
end
target 'MessagingExampleSwift' do
    pod 'Firebase/Core'
end
target 'MessagingExampleTests' do
    inherit! :search_paths
    pod 'Firebase/Core'
end

target 'MessagingExampleSwiftUITests' do
    inherit! :search_paths
    pod 'Firebase/Core'
end

target 'MessagingExampleUITests' do
    inherit! :search_paths
    pod 'Firebase/Core'
end
morganchen12 commented 5 years ago

Looks like you were able to solve this issue in #728.

anonym24 commented 5 years ago

@morganchen12 I just copied code from this example to my own working project with Firebase. This sample still needs fixing. This helped me to solve the issue in my project: https://stackoverflow.com/a/40524145/7767664

morganchen12 commented 5 years ago

What version of CocoaPods are you using? The sample builds and runs without issues on Travis. You can see the build log here: https://travis-ci.org/firebase/quickstart-ios/jobs/542903202

anonym24 commented 5 years ago

@morganchen12 the latest 1.7.1

morganchen12 commented 5 years ago

Can you share your project that fails to build?

anonym24 commented 5 years ago

@morganchen12 I just git clone https://github.com/firebase/quickstart-ios

then cd quickstart-ios/messaging and pod install --repo-update

I change Bundle Identifier and when I try to build Swift version (MessagingExampleSwift) it gives that error.

So the project is the same

morganchen12 commented 5 years ago

I'm unable to reproduce the build error on my machine. What version of Xcode are you using?

anonym24 commented 5 years ago

Xcode 10.2.1