-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
113 duplicate symbols for architecture x86_64 #1972
Comments
Hi @jawwad @KylinChang , Can you please check and help in it? |
@vipinsaini0 - Hmm, that's weird, maybe a caching issue? Could you try the following and let me know if it fixes it?
If not, could you share a bit more about your setup and what packages you are including? |
@jawwad just got this as well when pinning |
Just looking stdout looks like it's between
|
Not it, if i change build target/device everything implodes. It certainly feels like an insidious module cache issue PS broken links |
I am having this issue too. |
@rromanchuk what do you mean by this. Trying to reproduce the issue and coming up short. Can this be replicated in a minimal sample project? |
I'm going to remove everything and add back incrementally so i can at least step through compilation errors and pinpoint the moment it repos. It's hard to create a minimal project, because even on File -> New Project the diff on build settings is already a massive departure, which i wouldnt be surprised if i had some bespoke setting causing the issue. Only consistent thing i have right now is a the dupe is between AEM and Core ❌ duplicate symbol 'OBJC_CLASS$_FBAEMAdvertiserMultiEntryRule' in
|
Ok, i got it building again by re-aligning some of build settings closer to what X-Code generates after a new ios/storyboard project. I don't have a great a control, because of how long purging cache + rebuild takes, but some of the changes i made are below. My guess is other linker flags.
I've built to both targets, device, sim successfully 🤷 TLDR: To fix, grep the project file for |
@joesus OK, i got the repro for you https://github.com/rromanchuk/fb-duplicate-syms It's 100% -ObjC. File -> new project -> swift/storyboard -> add the linker flag and you can repro the same error. That makes a little more sense, especially since older projects are likely to have this legacy cruft sitting around from popular SDKs like firebase on cocoapods // AppDelegate.swift
import UIKit
import FacebookCore
import FacebookLogin
import FacebookShare
// .... |
After run this two command, still same error.
but getting error log - -canOpenURL: failed for URL: "fbapi:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" |
By adding below fb notification, now working fine. Thank you!
|
Seems like there were two issues here:
This seems like a separate issue. My guess is that the SDK isn't being initialized correctly. That observer is added when the Please open a new issue if initializing the SDK according to the getting started instructions does not resolve the issue. You should not need to add that observer yourself. Closing since it seems like the issue is resolved. Thank you for bringing this up and for helping provide a useful repro sample!!! |
On second thought. Will leave this open for now and work on a patch fix since this is definitely a breaking change. |
@vipinsaini0, @rromanchuk, @dejiapps - We just released v12.2.1 which should fix this issue. Special thanks to @rromanchuk for troubleshooting and providing a sample project and to @joesus for fixing the issue! |
Checklist before submitting a bug report
Xcode version
12.5.1
Facebook iOS SDK version
12.2.0
Dependency Manager
SPM
SDK Framework
Login
Goals
User login in my app by fb login.
Expected results
App run and get user profile details.
Actual results
app run (build) failed.
Steps to reproduce
update swift package from 12.1.0 to 12.2.0. once finished run the app, and getting failed the build.
Code samples & details
No response
The text was updated successfully, but these errors were encountered: