framework in xcode deleted by mistake - ios

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.

Related

Using Pods in Share Extension fails

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.

Firestore build error in abseil with Swift and Cocoapods

I have a swift project that is using Firestore. There is a build issue when compiling the abseil pod that is included by Firestore. When I attempt to build the project, I intermittently get this error: absl/base/internal/inline_variable.h file not found.
I am using Xcode 11.4, Cocoapods 1.9.1, and Swift 5.
I have tried clearing derived data, updating pods, and deintegrating pods. The one workaround that seems to work is the following, but when I switch devices for a build, the error occurs again.
1. Comment out Firestore in the Podfile.
2. Run bundle exec pod install
3. Open Xcode and build.
4. Uncomment Firestore in the Podfile.
5. Run bundle exec pod install
6. Open Xcode and build.
These steps will work temporarily. Does anyone know of a way to get past this issue?
Here is the Podfile that I am using:
source 'git#git.myresearchapp.com:MyCompany/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
target 'MyApp' do
use_frameworks!
pod 'RNCryptor'
pod 'KeychainSwift'
pod 'Sentry', git: 'https://github.com/getsentry/sentry-cocoa.git', tag: '3.11.0'
pod 'Fabric'
pod 'Crashlytics'
pod 'UICircularProgressRing', '~>4.1.0'
pod 'IHKeyboardAvoiding', git: 'git#git.myresearchapp.com:MyCompany/IHKeyboardAvoiding.git', branch: 'master'
pod 'GTProgressBar'
pod 'AWSSNS'
pod 'AWSCognito'
pod 'AWSS3'
pod 'Validator', git: 'https://github.com/jlowe234/validator'
pod 'SwiftyOnboard', git: 'git#git.myresearchapp.com:MyCompany/SwiftyOnboard.git', branch: 'master'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyAppUITests' do
inherit! :search_paths
# Pods for testing
end
end
I solved this problem by updating to the latest version of Sentry. Apparently there is a build conflict between Firestore and version 3.11.0 of Sentry.
The fix is to change the Podfile entry for Sentry to the following:
pod 'Sentry'
After spending hours searching and trying to solve this issue, the only solution was to add a pre-compiled Firestore SDK.
add this line to the PodFile
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '7.3.0'
refer to firestore-ios-sdk-frameworks for more info

Flurry IOS SDK Error - Undefined symbol: ___isPlatformVersionAtLeast

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

'FirebaseCore/FirebaseCore.h' file not found in swift5 on ios

I have a problem using FireBase. I had no problem with the build, but there was an error with the Firebase in iOS10.3 and I tried the suggested solution.
rm -rf ~/Library/Developer/Xcode/DerivedData/
And then I erased the cache and rebuilt it. However, the error has been changed.
'FirebaseCore/FirebaseCore.h' file not found Could not build // firebase.h
Objective-C module 'Firebase' // Appdelegate.swift
my podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'testtest' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for DeleteMe
pod 'SwiftSVG', '~> 2.0'
pod 'Toaster'
pod 'BigInt', '~> 4.0'
pod 'CryptoSwift'
pod 'RealmSwift'
pod 'web3.swift.pod', '~> 2.2.0'
pod 'Firebase'
pod 'Firebase/Messaging'
pod 'Firebase/Auth'
pod 'Firebase/Core'
end
I erased Pod and tried to rebuild it, but the error was the same.
$ pod deintegrate
$ pod clean
$ pod install
How can you solve this problem?
Xcode : Version 11.0
realDevice : iphone5 10.3
I just built my other test iPhone 6 version 12.4, but there was no error. There seems to be a problem in version 10.3.

Cocoa Pods not updating inside of app

I have been assigned at work to update an app that hasn't been touched in a year and a half. The cocoa pods version is 0.22.
I am trying to update it to 0.35. I've run 'sudo gem update' and have .35, but when I run 'pod install' it just installs the old versions of all of the pods (i.e. AFNetworking 1.1.0).
Thanks
platform :ios, '6.0'
pod 'Facebook-iOS-SDK'
pod 'OpenCV'
pod 'RestKit'
pod 'QuickDialog'
pod 'ReactiveCocoa'
pod 'SVProgressHUD'
pod 'Mixpanel'
pod 'GVUserDefaults'
pod 'TTTAttributedLabel'
pod 'uservoice-iphone-sdk'
target :ShoeboxTests, :exclusive => true do
pod 'Kiwi', :head
end
I'm new to using cocoa pods so I'm not sure what to do with this file.
Your podfile specifies that you're targeting iOS 6, so it is possible that cocoapods is only giving you the highest version known to support iOS 6.
Try removing that line entirely, or changing it to:
platform :ios, '8.1'

Resources