Inside my project I have a shareExtension and I need to install a pod for it.
I tried it like this:
target 'Wishlists' do
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Hero'
pod 'RevealingSplashView'
pod 'LBTAComponents'
pod 'lottie-ios'
pod 'SwiftEntryKit', '1.2.3'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'GoogleSignIn'
pod 'SkeletonView'
pod 'SwiftSoup'
end
target 'ShareExtension' do
pod 'SwiftSoup'
end
I simply tried adding the target and the pod I need (SwiftSoup), but my app is crushing now because the pods for my main project (Wishlists) do not work anymore. Does anyone know what's wrong with the file? Can not figure it out.. I ran pod install already.
I found the bug.. I deleted use frameworks! by accident from my podfile inside the Main Project. I added it again and also had to add it to the ShareExtension and now it is working.
Related
I am getting error when added a new pod. My initial pod file was
#platform :ios, '9.0'
target 'xxxxxx' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TPV Plus
pod 'IQKeyboardManagerSwift'
pod 'SDWebImage'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'EVReflection/MoyaRxSwift'
pod 'SwifterSwift'
pod 'Crashlytics'
pod 'Fabric'
pod 'LGSideMenuController'
pod 'CCBottomRefreshControl'
pod 'MaterialComponents/ActivityIndicator'
pod 'TweeTextField'
pod 'DropDown'
pod 'DisPlayers-Audio-Visualizers'
pod 'MaterialComponents/BottomSheet'
# pod 'GooglePlacePicker'
pod 'GooglePlaces', '3.6.0'
pod 'GoogleMaps', '3.6.0'
I have commented few and added FirebaseCrashlytics. Below is the updated one
#platform :ios, '9.0'
target 'xxxx' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TPV Plus
pod 'IQKeyboardManagerSwift'
pod 'SDWebImage'
# pod 'Firebase/Core'
# pod 'Firebase/Messaging'
pod 'EVReflection/MoyaRxSwift'
pod 'SwifterSwift'
# pod 'Crashlytics'
# pod 'Fabric'
pod 'LGSideMenuController'
pod 'CCBottomRefreshControl'
pod 'MaterialComponents/ActivityIndicator'
pod 'TweeTextField'
pod 'DropDown'
pod 'DisPlayers-Audio-Visualizers'
pod 'MaterialComponents/BottomSheet'
# pod 'GooglePlacePicker'
pod 'GooglePlaces', '3.6.0'
pod 'GoogleMaps', '3.6.0'
pod 'FirebaseCrashlytics'
end
But when I build the project getting error error build: 13 duplicate symbols for architecture arm64
In the project all other library files are duplicated as shown in picture. The project is git integrated.
How will I solve this issue.
I figured out the issue happened here. During the git commit, the pod files were committed partially to git. So I deleted the entire pod folder and kept the pod.lock file as such. After that did the pod install. So all the duplicate files were deleted and project is building successfully.
I would like to archive my project so I can upload it to Apple-Connect but I am facing this issue:
I also get this these messages:
I googled it and I found that this is quite a common issue, which you can usually resolve by deleting a info.plist file from Build Phase.
However there is no such a file in the regarding Build Phases.
These are my pods for GTM:
Build Phase for GTMSessionFetcher-Core:
Build Phase for GTMSessionFetcher.default-Core:
My podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'Wishlists' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Wishlists
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
#pod 'TextFieldEffects'
pod 'Hero'
pod 'RevealingSplashView'
pod 'LBTAComponents'
pod 'lottie-ios'
pod 'SwiftEntryKit', '1.2.3'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'GoogleSignIn'
pod 'SkeletonView'
pod 'SwiftSoup'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 5.0'
pod 'KeychainAccess'
end
target 'ShareExtension' do
use_frameworks!
pod 'SwiftSoup'
pod 'URLEmbeddedView'
pod 'lottie-ios'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 5.0'
end
I really don't know much about this stuff so I don't want to delete anything by accident. Does anyone know what to do here?
When I try to build my app, I get the following error
Showing Recent Messages
:-1: Undefined symbol: ___isPlatformVersionAtLeast
I tried cleaning the build, reinstalling the pods, but nothing works. Can someone please help?
I'm using XCode V10.3, IOS V 11.2.
Here's my pod file
# Uncomment the next line to define a global platform for your project
platform :ios, '11.2'
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Minuteapp
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'FacebookShare'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase'
pod 'FolioReaderKit'
pod 'AppAuth','~> 1.2.0'
pod 'SwiftMessages' , '7.0.0'
pod 'GoogleSignIn'
pod 'Promises'
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Branch'
pod 'Flurry-iOS-SDK/FlurrySDK' #Analytics Pod
pod 'Flurry-iOS-SDK/FlurryAds' #Advertising Pod (requires Analytics)
pod 'Flurry-iOS-SDK/FlurryMessaging'
pod 'ApphudSDK'
pod 'SDWebImage', '~> 5.0'
pod 'AQPlayer'
pod 'DeviceKit'
pod "SwiftRater"
pod "STPopup"
pod 'iOSDropDown'
end
It looks like the Flurry SDK was built with Xcode 11.
Options:
Upgrade to Xcode 11
Ask Flurry to support Xcode 10.3
Use an old version of the Flurry SDK that was built with Xcode 10
I get an error "cannot find module SwiftMessages" when archiving an iOS project. I'm using CocoaPods, Xcode V10.2, and iOS V10.1. Here's my pod file:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.1'
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Minuteapp
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'FacebookShare'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase'
pod 'FolioReaderKit'
pod 'SwiftyStoreKit'
pod 'SwiftMessages' , '7.0.0'
pod 'GoogleSignIn'
pod 'Promises'
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Flurry-iOS-SDK/FlurrySDK' #Analytics Pod
pod 'Flurry-iOS-SDK/FlurryAds' #Advertising Pod (requires Analytics)
pod 'Flurry-iOS-SDK/FlurryMessaging'
pod 'STPopup'
pod 'SendGrid-Swift'
pod 'DeviceKit'
end
Try deleting the DerivedData folder:
~/Library/Developer/Xcode/DerivedData/
There is a folder inside named ModuleCache that caches module versions. Removing it will make all the modules be recompiled, probably solving your issue.
This is my podfile for my iphone app.
platform :ios, ‘9.0’
use_frameworks!
target ‘NearBy Places’ do
pod 'Alamofire', '~> 4.0'
pod 'SwiftyJSON'
pod 'Toast-Swift', '~> 2.0.0'
pod 'MBProgressHUD'
pod 'GoogleMaps'
pod 'GooglePlaces'
end
I accidentally deleted some files of framework. Now even when i run pod install command, it is still not able to get those files back and is showing me missing googlemapscore framework missing linker error.
Delete the pod, run pod update and then add your pod and call pod update again.
I had the same problem after deleting GoogleMapsCore by mistake. Here's what worked for me:
From my project podfile, commented out the pods related to google maps, in my case
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
ran cd ios then pod install , which removed the pods i commented out
then uncommented the pods i have commented earlier in step 1
repeat step 3 to install the pods again
ran a clean build on xcode and it worked.