What did I do?
I tried to run the pod install or arch -x86_64 pod install command
What did you expect to happen?
I want to pod install Facebook with use framework!.
Currently, I am using a static library.
What happened instead?
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod
FacebookCoredepends uponFBSDKCoreKit, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may setuse_modular_headers!globally in your Podfile, or specify:modular_headers => truefor particular dependencies.The Swift pod
FacebookLogindepends uponFBSDKCoreKitandFBSDKLoginKit, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may setuse_modular_headers!globally in your Podfile, or specify:modular_headers => truefor particular dependencies.The Swift pod
FacebookSharedepends uponFBSDKCoreKitandFBSDKShareKit, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may setuse_modular_headers!globally in your Podfile, or specify:modular_headers => truefor particular dependencies.
CocoaPods Environment
CocoaPods : 1.2.1
Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
def facebook_pods
# pod 'Bolts'
# pod 'FBSDKLoginKit', :modular_headers => true
# pod 'FBSDKShareKit', :modular_headers => true
pod 'FacebookLogin'
pod 'FacebookShare'
end
def all_pods
pod 'Firebase', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GoogleSignIn'
pod 'FirebaseCoreInternal'
pod 'Firebase/Analytics'
pod 'Firebase/DynamicLinks'
pod 'AFNetworking', '~> 3.0'
pod 'StreamingKit', '0.1.29'
pod 'TYMActivityIndicatorView'
pod 'IQKeyboardManager','~> 6.0.1'
pod 'iOS-Slide-Menu', '~> 1.5'
pod 'TwitterKit'
pod 'TwitterCore'
pod 'Fabric'
pod 'Crashlytics'
pod 'MBProgressHUD'
pod 'UCZProgressView'
pod 'BIZActivityButton'
pod 'TagCellLayout'
pod 'AnimatedCollectionViewLayout'
pod 'CardsLayout'
pod 'SegmentedProgressView'
pod 'VIMediaCache'
pod 'ZFTokenField'
pod "CleverTap-iOS-SDK"
pod 'SDWebImageFLPlugin'
pod 'FlexiblePageControl'
pod 'YoutubePlayer-in-WKWebView'
pod 'PayUIndia-Custom-Browser'
pod 'PayUIndia-PG-SDK'
# pod 'lottie-ios'
# pod 'PromiseKit'
pod 'Adjust', '~> 4.29.2'
pod 'Toast-Swift', '~> 5.0.1'
pod 'RealmSwift', '~> 10.5.2', :modular_headers => true
pod 'Realm', '~> 10.5.2', :modular_headers => true
facebook_pods
end
# Service Extension Use All Available pods
def serviceExtensionAllTargetPods
# pod "CleverTap-iOS-SDK"
end
target 'MyApp' do
all_pods
end
target 'MyApp Development Stage' do
all_pods
end
target 'MyApp Development Stage Simulator' do
all_pods
end
target 'MyApp Development Live' do
all_pods
end
target 'MyApp Development Live Simulator' do
all_pods
end
target 'MyApp Enterprise Stage' do
all_pods
end
target 'MyApp Enterprise Live' do
all_pods
end
target 'ServiceExtension' do
serviceExtensionAllTargetPods
end
target 'MyApp ServiceExtension' do
serviceExtensionAllTargetPods
end
target 'MyApp Enterprise ServiceExtension' do
serviceExtensionAllTargetPods
end
I want to pod install Facebook with use framework!.
Currently, I am using a static library.
And I don’t want use use_modular_headers! globally.






