Many build errors after updating pod

I have many modules installed in my project. Everything went fine since the last update. After the last pod update, I have 28 build errors starting with "Failed to create xxx module."

enter image description here

Here is my podfile:

target 'projectXXX' do
use_frameworks!
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Messaging'
pod 'Firebase/Crash'
pod 'TwitterKit'
pod 'Fabric'
pod 'Crashlytics' end
  • I tried to uninstall - install cocoapods.
  • I tried to de-integrate the pod from the project, install, delete the .workspace file and the deriveData folder ... still got these errors.

I'm running out of ideas. Please, any other solution? thank you very much

EDIT

I just found that my Pods.framework is in a red state, as shown in the screenshot below. Maybe this can help?

enter image description here

+4
source share
5 answers

Xcode . , , .

, PODS_ROOT . , PODS_ROOT = ${SRCROOT}/Pods

0

, pods ( ) , . . , pod :

source 'https://github.com/CocoaPods/Old-Specs.git'

platform :ios, '9.0'
use_frameworks!

xcodeproj 'SF'

#link_with 'SF'

target 'SF' do
    pod 'TransitionKit'
    pod 'MBProgressHUD'
    pod 'PureLayout'
    pod 'UICountingLabel'
    pod 'MWPhotoBrowser', :git => 'https://github.com/pash3r/MWPhotoBrowser.git', :branch => 'skyFlyWork'
end
0

pod update, swift4, swift3

4 swift 3.2

1) swift4

()

2) , 3.2.

swift4 swift3 swift4

0

:
- Pods/API

- - / Swift.

(Git ..). Podfile.lock.

( , more somePath/Podfile.lock Terminal.app), "" .

- :

PODS:
  - GSKStretchyHeaderView (1.0.3)
  - Masonry (1.1.0)
...
PODFILE CHECKSUM: someCheckSum

COCOAPODS: 1.1.1

pod 'Firebase', , . , .

, '~> 1.0.3' (, GSKStretchyHeaderView). , .

, , . ( podspec "" ) , , , , , () /w 21 > .

dev "", , , " ~>". , (//), , , /, , . , ( , ..).

If you are not using a version control system such as Git, I highly recommend you do it now. But if it's your business, and you still have a problem. Remember the date when everything was fine after pod update/install. Then go to each Git of your containers and read the history to find the version on that date, and install this version in your podfile for this module.

0
source

First try removing cocoa pods completely

gem install cocoapods-deintegrate
pod deintegrate
gem install cocoapods-clean
pod clean

Then install this again

pod setup
open -a Xcode Podfile

In the pod file add like this

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'TestProject' do
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Messaging'
pod 'Firebase/Crash'
pod 'TwitterKit'
pod 'Fabric'
pod 'Crashlytics'
end
target 'ProjectTests' do
end

pod install
0
source

Source: https://habr.com/ru/post/1689631/


All Articles