-
Notifications
You must be signed in to change notification settings - Fork 2.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
Can't install pods #12136
Comments
Is this fixed then? |
gem install --user-install cocoapods |
Were you able to actually add any pod to your widget extension? Every time I added them I received the error below for almost all the files.
Even if I deintegrate, clean and install again the pods. I have even clean the project, delete derived data and restart the computer. |
@ana-bonnet Yeah I did. What does your pod file look like? |
@orre1996 like bellow, but I tried adding every pod by target like you did too, but nothing the same error. And sometimes I even get and error saying that some pods importations should have <> instead of "". # Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
use_frameworks!
def firebase_pods
#Firebase
pod 'Firebase/Auth'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
end
def shared_pods
#Firebase
pod 'Firebase/RemoteConfig'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Performance'
pod 'Firebase/Messaging'
pod 'Firebase/InAppMessaging'
pod 'GoogleSignIn'
#Sockets
pod 'Socket.IO-Client-Swift', '~>15.2.0'
#Messenger
pod 'Intercom'
#Payments
pod 'Stripe'
pod 'StripePaymentSheet'
#Animations
pod 'lottie-ios', '~>3.5.0'
#Search
pod 'AlgoliaSearchClient'
#SwiftUI Helpers
pod 'SwiftUIIntrospect'
# Staging helpers
pod "TouchVisualizer", :configurations => ['Debug']
pod 'netfox', :configurations => ['Debug']
end
target 'MyApp' do
firebase_pods
shared_pods
end
target 'MyTestApp' do
firebase_pods
shared_pods
end
target 'MyTestAppWidget-Extension' do
firebase_pods
end
target 'MyAppWidget-Extension' do
firebase_pods
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 12.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
end |
Hi there, was someone able to fix this issue ? I am encountering this issue when trying to pod install with a newly added local swift dependency. |
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
The text was updated successfully, but these errors were encountered: