podfile

How to set the Legacy Swift Version for each Pod in Podfile Xcode 9.0 Swift 3.2 / Swift 4.0

旧城冷巷雨未停 提交于 2019-11-28 04:40:45
I am currently setting the legacy in the Podfile to SWIFT_VERSION = 2.3 , but some of the libraries I am using are Swift 3.0, which means that I need to manually set the legacy for all Swift 3.0 pods legacy to No on each pod install . How do I configure each pod version in the Podfile installer? This is what I am setting: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end end end If I set config.build_settings['SWIFT_VERSION'] = '3.0' , than we have issues with Swift 2.3

ld: framework not found after pod install

自古美人都是妖i 提交于 2019-11-27 23:25:39
问题 I added Firebase libraries to my project, and then I got this error. When I compile it, Xcode can't find some directories. However, they are in the Pods directory. Here is the error log: ld: warning: directory not found for option '-F/Users/Erumaru/Library/Developer/Xcode/DerivedData/ToDoTogether-gkzytezmbbgkikgoxjpptxgrixil/Build/Products/Debug-iphonesimulator/GTMSessionFetcher' ld: warning: directory not found for option '-F/Users/Erumaru/Library/Developer/Xcode/DerivedData/ToDoTogether

Integrating pods with all targets

随声附和 提交于 2019-11-27 23:15:32
问题 I have been using CocoaPods for a few weeks now with my iOS app and it works perfectly with the one target I have been testing (let's call it "MainApp"). However, I now want to build a different target ("MyAppLite") and noticed that the build failed (file not found on one of the pods' header files). The differences in the Build Settings I've noticed are as follows: Other Linker Flags does not contain the required frameworks in MyAppLite Framework/Header/Library Search Paths are all empty in

How to set the Legacy Swift Version for each Pod in Podfile Xcode 9.0 Swift 3.2 / Swift 4.0

爷,独闯天下 提交于 2019-11-27 00:27:50
问题 I am currently setting the legacy in the Podfile to SWIFT_VERSION = 2.3 , but some of the libraries I am using are Swift 3.0, which means that I need to manually set the legacy for all Swift 3.0 pods legacy to No on each pod install . How do I configure each pod version in the Podfile installer? This is what I am setting: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end