Closed charlie80124 closed 2 years ago
Version 11.0.1 works well
Hi, I have the same problem.
Version 11.1.0 works well too.
I can confirm this issue is also affecting all our Unity mobile productions.
This is happening on my project too since the pods was updated.
Yes. Hours time wasted and finally we updated the dependency to ~>11.1.0 to bypass it.
@mofish9 's solution also works on unity projects , unity ver: 2020.3.17f. thanks @mofish9
Same issue here. Spoke with several others who also are experiencing exact same issue since updating to 11.2.0.
Version 11.1.0 works
Hi @charlie80124, @jsyrtsov, @jfperusse-bhvr , @jmeyblum , @mofish9, @kerimdeveci, @cvcoder1 - Sorry about the issues you are encountering. I have a few questions...
abstract_target 'target' do use_frameworks! pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit' target 'project name2' do end target 'project name1' do end
I have same problem with version 11.2.0 too
Same issue here.
Same problem here. Gotta downgrade to 11.1.0.
Installing FBAEMKit 11.1.0 (was 11.2.0) Installing FBSDKCoreKit 11.1.0 (was 11.2.0) Installing FBSDKCoreKit_Basics 11.1.0 (was 11.2.0) Installing FBSDKLoginKit 11.1.0 (was 11.2.0) Installing FBSDKShareKit 11.1.0 (was 11.2.0)
fixes the issue @jawwad
Good afternoon, the same error, but how to install version 11.1.0 instead of 11.2.0?
Good afternoon, the same error, but how to install version 11.1.0 instead of 11.2.0?
pod 'FBSDKCoreKit' ,'~>11.1.0'
pod 'FBSDKLoginKit','~>11.1.0'
pod 'FBSDKShareKit','~>11.1.0'
I have an error
Добрый день, та же ошибка, но как установить версию 11.1.0 вместо 11.2.0?
pod 'FBSDKCoreKit' ,'~>11.1.0' pod 'FBSDKLoginKit','~>11.1.0' pod 'FBSDKShareKit','~>11.1.0'
I have the same issue as well with v11.2.0 using CocoaPods 1.11.0. @n1kStas you have some syntax issues that's why you get the error
У меня та же проблема, что и с v11.2.0 с использованием кокосовых стручков 1.11.0.@n1kStas у вас есть некоторые проблемы с синтаксисом, поэтому вы получаете сообщение об ошибке
Were you able to fix the problem?
У меня та же проблема, что и с v11.2.0 с использованием кокосовых стручков 1.11.0.@n1kStas у вас есть некоторые проблемы с синтаксисом, поэтому вы получаете сообщение об ошибке
Вы смогли решить проблему?
Adding this on your Podfile does the trick for now until someone fixes the issue for 11.2.0.
pod 'FBSDKCoreKit', '~> 11.1.0'
pod 'FBSDKShareKit', '~> 11.1.0'
pod 'FBSDKLoginKit', '~> 11.1.0'
Same error!
У меня та же проблема, что и с v11.2.0 с использованием кокосовых стручков 1.11.0.@n1kStas у вас есть некоторые проблемы с синтаксисом, поэтому вы получаете сообщение об ошибке
Вы смогли решить проблему?
Adding this on your Podfile does the trick for now until someone fixes the issue for 11.2.0.
pod 'FBSDKCoreKit', '~> 11.1.0' pod 'FBSDKShareKit', '~> 11.1.0' pod 'FBSDKLoginKit', '~> 11.1.0'
Added and installed, but now I have errors like this
Same issue here. i use facebook-unity-sdk-11.0.0. And fixed this with downgrade to 11.1.0.
@jawwad We are using the Unity Facebook SDK. Podfile looks like this:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
target 'UnityFramework' do
pod 'FBSDKCoreKit', '~> 11.0'
pod 'FBSDKCoreKit_Basics', '~> 11.0'
pod 'FBSDKGamingServicesKit', '~> 11.0'
pod 'FBSDKLoginKit', '~> 11.0'
pod 'FBSDKShareKit', '~> 11.0'
end
target 'Unity-iPhone' do
end
use_frameworks!
use_frameworks!
I'm facing same trouble with facebook-unity-sdk-11.0.0 And pod env is like this.
$ pod env
### Stack
CocoaPods : 1.11.0
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
RubyGems : 3.0.3
Host : macOS 11.4 (20F71)
Xcode : 12.5.1 (12E507)
Git : git version 2.30.1 (Apple Git-130)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ ef77cf4bb8d981191ec1363912578fd466872a6d
### Installation Source
Executable Path: /usr/local/Cellar/cocoapods/1.11.0/libexec/bin/pod
### Plugins
cocoapods-deintegrate : 1.0.5
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0
### Podfile
ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '13.0'
target 'UnityFramework' do
pod 'FBSDKCoreKit', '~> 11.0'
pod 'FBSDKCoreKit_Basics', '~> 11.0'
pod 'FBSDKGamingServicesKit', '~> 11.0'
pod 'FBSDKLoginKit', '~> 11.0'
pod 'FBSDKShareKit', '~> 11.0'
pod 'Firebase/Analytics', '8.3.0'
pod 'Firebase/Auth', '8.3.0'
pod 'Firebase/Core', '8.3.0'
pod 'Firebase/Crashlytics', '8.3.0'
pod 'Firebase/Messaging', '8.3.0'
end
target 'Unity-iPhone' do
end
use_frameworks!
use_frameworks!
Does anyone resolved this issue? If yes, I'd like to know the detail how to fix.
Does anyone resolved this issue? If yes, I'd like to know the detail how to fix.
Just replace
pod 'FBSDKCoreKit', '~> 11.0'
pod 'FBSDKCoreKit_Basics', '~> 11.0'
pod 'FBSDKGamingServicesKit', '~> 11.0'
pod 'FBSDKLoginKit', '~> 11.0'
pod 'FBSDKShareKit', '~> 11.0'
to
pod 'FBSDKCoreKit', '~> 11.1.0'
pod 'FBSDKCoreKit_Basics', '~> 11.1.0'
pod 'FBSDKGamingServicesKit', '~> 11.1.0'
pod 'FBSDKLoginKit', '~> 11.1.0'
pod 'FBSDKShareKit', '~> 11.1.0'
@aimatme Thank you for replying. I tried Xcode build with this modification. Finally build was succeeded !! ( Thank you GOD!! )
So, all unity engineer have to modify Podfile until official SDK become updated :( I also have to modify CI settings...
@aimatme Thank you for replying. I tried Xcode build with this modification. Finally build was succeeded !! ( Thank you GOD!! )
So, all unity engineer have to modify Podfile until official SDK become updated :( I also have to modify CI settings...
No, you could modify the Dependencies.xml file in Unity project and the generated Podfile will be updated automatically.
No, you could modify the Dependencies.xml file in Unity project and the generated Podfile will be updated automatically.
@mofish9 I confirmed that it is enough to modify Dependencies.xml file in Unity project. Finally the build was successful! Thank you bros. :)
Is there anyone on this thread that is experiencing this issue but is not using Unity?
@jawwad I am experiencing this and not using Unity.
@jawwad I am experiencing this and not using Unity.
@noahcooper - Could you share what imports you have for Facebook in your Podfile?
@jawwad here is my full Podfile:
source 'https://cdn.cocoapods.org/'
platform :ios, '12.0'
use_frameworks!
target 'My App' do
project 'My App.xcodeproj'
pod 'FBSDKCoreKit', '11.2.0'
pod 'FBSDKLoginKit', '11.2.0'
pod 'FBSDKShareKit', '11.2.0'
end
This fails with an error in FBSDKMessengerIcon.h
:
If I downgrade the SDK back to 11.1.0, the build succeeds.
@jawwad it looks like perhaps the issue here is that FBSDKCoreKitImport.h
does not exist for FBSDKShareKit
? It's only in FBSDKLoginKit
?
I am on the same situation as @noahcooper is on a native iOS project. cc @jawwad
@jawwad I am experiencing this and not using Unity.
Same issue here with version 11.2.0
, downgrade to version 11.1.0
and then success.
@jawwad it looks like perhaps the issue here is that
FBSDKCoreKitImport.h
does not exist forFBSDKShareKit
? It's only inFBSDKLoginKit
?
Hmm... it is included in the actual Xcode project, not sure why the CocoaPods version isn't seeing it. I'm going to try to look into this a bit more today.
@jawwad here is my full Podfile:
source 'https://cdn.cocoapods.org/' platform :ios, '12.0' use_frameworks! target 'My App' do project 'My App.xcodeproj' pod 'FBSDKCoreKit', '11.2.0' pod 'FBSDKLoginKit', '11.2.0' pod 'FBSDKShareKit', '11.2.0' end
This fails with an error in
FBSDKMessengerIcon.h
:![]()
If I downgrade the SDK back to 11.1.0, the build succeeds.
Thanks for providing this, it was very helpful! I think I have a workaround which I'll add in the next comment.
For those that are having the issue, in FBSDKShareKit/FBSDKShareKit/Internal/FBSDKMessengerIcon.h
could you try replacing the #import "FBSDKCoreKitImport.h"
line with #import <FBSDKCoreKit/FBSDKCoreKit+Internal.h>
?
#import "TargetConditionals.h"
#if !TARGET_OS_TV
// #import "FBSDKCoreKitImport.h" < - DELETE THIS LINE
#import <FBSDKCoreKit/FBSDKCoreKit+Internal.h> // <- ADD THIS LINE
NS_SWIFT_NAME(MessengerIcon)
@interface FBSDKMessengerIcon : FBSDKIcon
@end
#endif
Let me know if that fixes the issue.
For those that are having the issue, in
FBSDKShareKit/FBSDKShareKit/Internal/FBSDKMessengerIcon.h
could you try replacing the#import "FBSDKCoreKitImport.h"
line with#import <FBSDKCoreKit/FBSDKCoreKit+Internal.h>
?In FBSDKShareKit/FBSDKShareKit/Internal/FBSDKMessengerIcon.h
#import "TargetConditionals.h" #if !TARGET_OS_TV // #import "FBSDKCoreKitImport.h" < - DELETE THIS LINE #import <FBSDKCoreKit/FBSDKCoreKit+Internal.h> // <- ADD THIS LINE NS_SWIFT_NAME(MessengerIcon) @interface FBSDKMessengerIcon : FBSDKIcon @end #endif
Let me know if that fixes the issue.
I tested making that change locally, and my build succeeded (of course this isn't a viable option in production, as my apps are built in the cloud and I can't manually manipulate the header file).
For those that are having the issue, in
FBSDKShareKit/FBSDKShareKit/Internal/FBSDKMessengerIcon.h
could you try replacing the#import "FBSDKCoreKitImport.h"
line with#import <FBSDKCoreKit/FBSDKCoreKit+Internal.h>
?In FBSDKShareKit/FBSDKShareKit/Internal/FBSDKMessengerIcon.h
#import "TargetConditionals.h" #if !TARGET_OS_TV // #import "FBSDKCoreKitImport.h" < - DELETE THIS LINE #import <FBSDKCoreKit/FBSDKCoreKit+Internal.h> // <- ADD THIS LINE NS_SWIFT_NAME(MessengerIcon) @interface FBSDKMessengerIcon : FBSDKIcon @end #endif
Let me know if that fixes the issue.
It works for me, build succeed
@jawwad After this workaround, build succeed but my app crashes as soon as app starts. Here is the log:
2021-09-16 11:09:37.449780+0300 WoodBall2[10078:3189278] Error loading /var/containers/Bundle/Application/A46D60A9-5818-40FB-963C-B7972984F57C/WoodBall2.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/A46D60A9-5818-40FB-963C-B7972984F57C/WoodBall2.app/Frameworks/UnityFramework.framework/UnityFramework, 265): Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/containers/Bundle/Application/A46D60A9-5818-40FB-963C-B7972984F57C/WoodBall2.app/Frameworks/UnityFramework.framework/UnityFramework Reason: image not found
But when I exclude FB SDK, it works well!
After downgrade to 11.1.0, a new error appeared:
ld: framework not found Bolts
I tested making that change locally, and my build succeeded (of course this isn't a viable option in production, as my apps are built in the cloud and I can't manually manipulate the header file).
Yeah I understand. I spent some time trying to see if the file could be modified in a post_integrate hook but I wasn't able to figure it out.
Let me think of what else we may be able to do here. Worst case we will be releasing v12 in early October which should solve the issue.
@noahcooper I tried your recommendation (replacing the import statement), and it got rid of the FBSDKCoreKitImport.h error but then my next build error was the following:
Ld /Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseFacebookAuthUI/FirebaseFacebookAuthUI.framework/FirebaseFacebookAuthUI normal (in target 'FirebaseFacebookAuthUI' from project 'Pods')
cd /Users/myusername/Documents/GitHub/CarbonCodex/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios12.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseFacebookAuthUI -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseFacebookAuthUI -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FBAEMKit -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FBSDKLoginKit -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseAuth -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseAuthUI -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseCore -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseCoreDiagnostics -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/GTMSessionFetcher -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/GoogleDataTransport -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/GoogleUtilities -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/PromisesObjC -F/Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/nanopb -filelist /Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseFacebookAuthUI.build/Objects-normal/x86_64/FirebaseFacebookAuthUI.LinkFileList -install_name @rpath/FirebaseFacebookAuthUI.framework/FirebaseFacebookAuthUI -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseFacebookAuthUI.build/Objects-normal/x86_64/FirebaseFacebookAuthUI_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework FBSDKCoreKit_Basics -framework FBSDKLoginKit -framework FirebaseAuth -framework FirebaseAuthUI -framework FirebaseCore -framework Foundation -framework SafariServices -framework Security -framework UIKit -weak_framework Accelerate -weak_framework Accounts -weak_framework AdSupport -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social -weak_framework StoreKit -weak_framework UIKit -framework Foundation -framework UIKit -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseFacebookAuthUI.build/Objects-normal/x86_64/FirebaseFacebookAuthUI_dependency_info.dat -o /Users/myusername/Library/Developer/Xcode/DerivedData/CMMTestSwift-hkooyxdopyeeqjeqskyqtqcnrsdx/Build/Products/Debug-iphonesimulator/FirebaseFacebookAuthUI/FirebaseFacebookAuthUI.framework/FirebaseFacebookAuthUI
And then the main bit below was:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in FUIFacebookAuth.o
"_OBJC_CLASS_$_FBSDKGraphRequest", referenced from:
objc-class-ref in FUIFacebookAuth.o
"_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
objc-class-ref in FUIFacebookAuth.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have googled a few solutions for this but nothing has worked. Do you have any suggestions? Can I provide any more useful information? Here's my podfile:
platform :ios, '13.0'
project 'CMMTestSwift.xcodeproj'
target 'CMMTestSwift' do
use_frameworks!
# Pods for CMMTestSwift
pod 'Charts'
pod 'Firebase', '>= 2.5.1'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'Firebase/Functions'
pod 'FirebaseUI'
pod 'FirebaseUI/Auth'
pod 'FirebaseUI/OAuth'
pod 'FirebaseUI/Google'
pod 'FirebaseUI/Facebook'
pod 'GoogleSignIn'
pod 'FBSDKCoreKit', '~> 11.0'
pod 'FBSDKLoginKit', '~> 11.0'
pod 'FBSDKShareKit', '~> 11.0'
pod 'Fabric', '~> 1.10.2'
pod 'Crashlytics', '~> 3.14.0'
pod 'MonthYearPicker'
pod 'Stripe'
target 'CMMTestSwiftTests' do
inherit! :search_paths
# Pods for testing
end
target 'CMMTestSwiftUITests' do
inherit! :search_paths
# Pods for testing
end
end
Just to get a rough estimate, when will the fix be pushed to cocoapods? Just saw the 11.2.1
has its tag but it's not yet pushed to the registry I guess.
@moritz-wundke - I'm pushing the CocoaPods now but it takes a while due to the dependencies and caching so it might be an hour or two before all of the CocoaPods are pushed.
Hi everyone - v11.2.1 was released yesterday with a potential fix for this. Can you update and see if it fixes the issue for you?
Checklist before submitting a bug report
Xcode version
12.5
Swift version
No response
Installation platform & version
1.10.1
Package
Core
Goals
Build/Run Successfully
Expected results
Build/Run Successfully
Actual results
What do you expect to happen?
Steps to reproduce
(old version is 11.0.1) after pod update (new version is 11.2) and file not found
p.s I have try some way to resolve like:
Code samples & details