Reputation: 369
Having issue like this on build app while trying add facebook sdk and run on simulator:
Steps i produced:
And on build, cant beat this error
What i tried:
But non of these worked. Its automatically redefining that module and causes this error.
Defined paths:
/Users/myusername/Library/Developer/Xcode/DerivedData/appfolder/Build/Products/Debug-iphonesimulator/FBSDKCoreKit
And
/Users/myusername/Library/Developer/Xcode/DerivedData/appfolder/Build/Intermediates.noindex/GeneratedModuleMaps/iphonesimulator
Thanks for your assist
Upvotes: 3
Views: 4518
Reputation: 10962
I think the following will solve this particular problem:
- Duplicate symbol errors
- Make sure that
FBSDK[Core, Login, Share]Kit.framework
are NOT inLink Binary with Libraries
for your root project when using cocoapods.
Upvotes: 1
Reputation: 505
Remove the facebook-ios-sdk swift package.
Create a swift file in project. eg:file.swift
Add the YourProjectName-Bridging-Header.h header file in project.
clean and run project.
Hope its work!
Upvotes: 5