Reputation: 486
I'm trying to use the firebase pod, however getting this (see image) error message when a run is attempted.
I followed this guide to install Cocoapods and added the firebase dependency to the Podfile.
p.s I tried to clean it a bunch of times.
Upvotes: 23
Views: 85800
Reputation: 183
I have tried a lot to fix this issue and failed for every attempt.
Then i just simply used:
pod install
and to my surprise, simply it solved my issue.
Upvotes: 0
Reputation: 1429
For me it was because the pod that I was using used Swift and I didn't include the use_frameworks!
line in my podfile.
I didn't include that line before and therefore had to create a Swift file in my project and a Objective-C bridging header (which Apple offers to do for you the first time you add a swift file to your project).
If you told it not to create the bridge, then you can use this guys tutorial to manually create it as well as the settings needed.
Upvotes: 0
Reputation: 445
I've got the same error when I was trying to configure cellIdentifiers in different Controllers.
I declared two variables globally with the same name. To solve this error I just renamed the second variable.
#import "ResultsTableViewController.h"
NSString *const kNormalCellidentifierName = @"NormalStoryCelll";
@interface ResultsTableViewController ()
@end
Upvotes: 1
Reputation: 302
I faced the same problem for hours and solved it with a simple hack. Just do clean and then Build
Upvotes: 4
Reputation: 21
A bit late, but what did the trick for me were cmd + q xcode, navigate to project folder, pod update
, reopen open the .xcworkspace
file, clean project and run/build again.
Upvotes: 2
Reputation: 174
Sometimes occurs when you perform an invalid delete through cocoapods
.
In my case I installed a framework through cocoapods
which required bitcode set to "enabled", later when I longer needed it removed it from Podfile
and pod install
.
That's when encountered this error, solving it by setting the required targets to "disabled" in bitcode option.
Upvotes: 1
Reputation: 1598
I got stuck for awhile trying to solve this, but the solution turned out to be very easy :)
If you are using Cocoapods
in your project, one needs to use xcworkspace
to build instead of xcproject
.
If you are using Cocoapods
and build from xcproject
, it will ignore the Cocoapods
libraries you need.
Upvotes: 64
Reputation: 559
This error will also trigger when several components (files) with identical names were added to Xcode workspace.
Renaming them will fix this error.
Upvotes: 2
Reputation: 103
Sometimes its because of you might be declaring an object with same variable name.
Clear the repeating variable name change it. After that clean your project and build again. Its worked for me....! Thanks.
Upvotes: 7