Not able to install pod in mac os - ios

i am not able to install any project POD except from alamofire
Mac config :
MacBook Pro M1 Chip 2020 13.3-inch (2560 × 1600)
masOS 13.0.1 (22A400)
Space 81.36 GB available of 245.11 GB
Cocoa POD Version : 1.15.5
when i try to install pod error like below
Automatically assigning platform iOS with version 11.0 on target TestsApp because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
my pod file is
target 'AppTest' do
pod 'AFNetworking', '~> 2.0'
pod 'SVProgressHUD'
pod 'Reachability'
pod 'UITableView+FDTemplateLayoutCell'
pod 'SCLAlertView-Objective-C'
pod 'CRToast', '~> 0.0.7'
pod 'GLCalendarView', '~> 1.0.0'
pod 'SDWebImage
end
target 'AppTests' do
end
that same pod work on other mac very well.

near the top of your Podfile, try adding in:
platform :ios, '13.0'
or whatever minimum iOS version you're hoping to support in your code.
The "What Is A Podfile?" documentation at Cocoapods.org offers some good detail and explanations.

Related

After installing Firebase with CocoaPod, I can no longer build

I'm trying to build Javascript source code as an iOS app using Cordova.
I have introduced firebase with CocoaPods, and I am very troubled because I can not build.
this is wannings
Ignoring file /Users/MYNAME/Library/Developer/Xcode/DerivedData/ProductName/Build/Products/Debug-iphonesimulator/CocoaLumberjack/CocoaLumberjack.framework/CocoaLumberjack, building for iOS Simulator-i386 but attempting to link with file built for iOS Simulator-x86_64
This is Error
Undefined symbols occur in large numbers
This is my Cocoapod profile.
platform :ios, '10.0'
use_frameworks!
target 'product_name' do
use_frameworks!
project 'product_name.xcodeproj'
use_frameworks!
pod 'Firebase/Analytics'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'FirebaseFirestoreSwift', '~> 0.2'
# ID Instance
pod 'Firebase/Messaging'
# config
pod 'CocoaLumberjack/Swift'
# Pods for PodTest
pod 'Fabric', '~> 1.10.2'
pod 'Crashlytics', '~> 3.14.0'
# Bluetooth
pod 'RxBluetoothKit'
# debug
pod 'SimulatorStatusMagic', :configurations => ['Debug']
# design pattern
pod 'Swinject'
# zip
pod 'Zip'
# Protect UI
pod 'iOSDFULibrary'
pod 'libb2s'
end
target 'shareExtension' do
use_frameworks!
pod 'Firebase/Analytics'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'FirebaseFirestoreSwift', '~> 0.2'
# ID Instance
pod 'Firebase/Messaging'
# config
pod 'CocoaLumberjack/Swift'
# Pods for PodTest
pod 'Fabric', '~> 1.10.2'
pod 'Crashlytics', '~> 3.14.0'
# Bluetooth
pod 'RxBluetoothKit'
# debug
pod 'SimulatorStatusMagic', :configurations => ['Debug']
# design pattern
pod 'Swinject'
# zip
pod 'Zip'
# Protect UI
pod 'iOSDFULibrary'
pod 'libb2s'
end
My Enviroment:
XCode Version 11.5
CocoaPods Version 1.9.3
What I have done so far.
STEP 1 : Solved CocoaPods Warnnings.
STEP 2 : Error Id: library Not Found XXXX
→ I installed the Not Found framework with CocoaPod(And decided to install a lot)
STEP3 : Modify Library Search Paths
STEP4 : Set Build Active Architecture Only explicitly to No
If anyone has experienced a similar error, I would like some advice on the current error.
Thanks.
I solved my problem.
I found an explanation in the condition of the build using the simulator.
Premise:
Why does the iOS simulator require i386 and x86_64 symbols even though I'm on an x86_64 system only?
Implementation example:
Could not find module for target 'x86_64-apple-ios-simulator'
In my project, I have to cleat Cordiva - Firebase relationship.
After,question,I did two Implementation.
STEP1: Find out why I can't build
Refer to the above article or build on the our iPhone.
STEP2: Organize compatibility
Make CORDOVA a parent element and make other targets child elements
THANKS!!

'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.

Swift 4.2 - Getting compiler errors for bridging header files missing in FacebookCore. Any ideas?

So I recently converted an old swift 3.2 project to a 4.2(quite the jump, i know).
I am getting these errors:
Here is my Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'app' do
pod 'Alamofire', '~> 4.0'
pod 'EVReflection/XML'
pod 'FontAwesomeKit', :git => 'https://github.com/PrideChung/FontAwesomeKit.git'
pod 'SVProgressHUD'
pod 'PageMenu', :git=> 'https://github.com/orazz/PageMenu.git'
pod 'Kingfisher', '~> 3.0.0'
pod 'RichEditorView'
pod 'SwiftKeychainWrapper'
pod 'FacebookCore'
pod 'CHTCollectionViewWaterfallLayout/Swift'
pod 'FacebookLogin'
pod 'FacebookShare'
pod 'Fuzi', '~> 1.0.0'
end
does this look correct?
Thank you for any insights
First, run pod install
And then, check if the version of your pods, probably they are not compatible with Swift 4.2, so you have to update then, or change the "Swift language version" on Pod inspector to swift 3.2 like that way:
Select the "Pod" project in project navigator:
Select your pod on Targets selector:
And on "Build settings" tab, find and change the "Swift language version" property:
Note: You can get away of this problem this way, but i highly recommend that you update your pods.

Incompatible library version: XXX requires version 2.0.0 or later, but Runes provides version 1.0.0

I was trying to run my iOS app on my iPhone. Project compiled nicely. But when app starts, XCode console showed:
dyld: Library not loaded: #rpath/Runes.framework/Runes
Referenced from: /private/var/mobile/Containers/Bundle/Application/CC8759F5-A501-400C-93A8-DCEE3BFE4770/XXX.app/XXX
Reason: Incompatible library version: XXX requires version 2.0.0 or later, but Runes provides version 1.0.0
I use Cocoapods and my Podfile looks like:
platform :ios, '8.0'
use_frameworks!
pod 'SnapKit', '~> 0.12.0'
pod 'Alamofire', '~> 1.2'
pod 'SwiftTask', '~> 3.3'
pod 'Argo'
pod 'Async', :git => 'https://github.com/duemunk/Async.git', :commit => '9e64046b767fe11010891f5b7fe2aed613a6ee55'
pod 'TapLabel', '0.0.3'
pod 'RealmSwift'
pod 'Kingfisher', '~> 1.4'
What should I do? Everything works fine on simulators.
Is it possible that you are using a CocoaPods version older than 0.38.2?
If so, update to 0.38.2 using sudo gem install cocoapods and run pod install on your project.
There was a recent bugfix that deals with illegal version numbers in the build settings of the linker.
As a workaround you could manually set the version of the "Runes" pod to 2 in the pod's target under Build Settings -> Linker -> Compatibility Version

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