cocoapods

Weak linking a framework to a static library

為{幸葍}努か 提交于 2019-12-11 17:45:47
问题 Problem My project is arranged like this: App Framework Static library (common code) The static library is going to start depending on the GoogleWebRTC framework. Unfortunately, this dependency can only be built as a framework via WebRTC.org. They removed the ability to build as a static library for maintenance reasons. Question Is is possble for the static library to weakly link to the GoogleWebRTC framework? App Framework Static library ("CommonCode") GoogleWebRTC Some solutions that come

How to force CI to use the latest pods after project was moved to Xcode 10 and latest wift 4.2?

孤街醉人 提交于 2019-12-11 17:06:49
问题 The question is because we see an error after moving project to the latest Xcode 10 and Swift 4.2: My fastfile looks like: before_all do xcversion(version: "10.0") end lane :test do scan(scheme: SCHEME_NAME, code_coverage: true, output_directory: OUTPUT_PATH + 'tests') xcov( scheme: SCHEME_NAME, workspace: WORKSPACE_FILE_PATH, json_report: true, markdown_report: true, output_directory: OUTPUT_PATH + "coverage", skip_slack: true, only_project_targets: true ) end and gitlab-ci.yml : stages: -

Cocoapod RealmSwift runtime error: `dyld: Library not loaded: @rpath/Realm.framework/Realm`

一曲冷凌霜 提交于 2019-12-11 17:00:29
问题 I have a project that used to work fine on the device but it started failing after I have re-installed cocoapods. The weird thing is I don't get the problem while running in the simulator. I was also able to replicate the same problem with a completely new project. The exact error was: dyld: Library not loaded: @rpath/Realm.framework/Realm Referenced from: /var/containers/Bundle/Application/34C8D121-9724-4C73-9B62-6F8932E5BFD7/myapp.app/myapp Reason: no suitable image found. Did find:

Google NearbyMessages cocoapod generates “duplicate output file” error

五迷三道 提交于 2019-12-11 16:59:33
问题 I’m having a problem with NearbyMessages in Xcode 11.2. When I add pod 'NearbyMessages' and then do pod install , when I open the xcworkspace , I get a “duplicate output file” error resulting from the Assets.car that is generated by “[CP] Copy Pods Resources” build phase: warning: duplicate output file '/Users/.../DerivedData/NearbyDemo-elvzmjtrsxnstlemqnzociqoajhv/Build/Products/Debug-iphonesimulator/NearbyDemo.app/Assets.car' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/...

Obj-C Xcode10.1 Cannot Archive linker command failed with exit code 1 (use -v to see invocation)

本小妞迷上赌 提交于 2019-12-11 16:58:26
问题 I managed to run my code on the simulator and on the phone. But now I want to archive it. I keep getting error saying ld: library not found for -lDownPicker clang error: linker command failed with exit code 1 (use -v to see invocation) I then run pod install on the following pod file Pod file platform :ios, '12.0' target 'Share Fitness' do pod 'DownPicker' pod 'GoogleMaps' pod 'GooglePlaces' pod 'Firebase' pod 'Firebase/Messaging' end I try to archive it again and I still get the following

Issue with Cocoapod, macOS High Sierra and Firebase dependencies

荒凉一梦 提交于 2019-12-11 16:45:50
问题 Here is my issue, I recently updated to macOS High Sierra and Xcode 9.1. I also installed cocoa pods. Then, I have a project, an IOS app which uses Firebase realtime database and Firebase storage. So, I follow the guide provided by Firebase step by step but I always end with this issue when I try to build my project : GTMSessionFetcher.framework: No such file or directory or GoogleToolboxForMac.framework : No such file or directory I already read several similar posts on stackOverflow and I

Cocoapods on Mac unable to install “Could not find a valid gem 'cocoapods' (>= 0)”

蹲街弑〆低调 提交于 2019-12-11 16:19:05
问题 I have one office Mac running MacOS 10.13.2 and Ruby 2.2.1 and it is unable to install or run cocoapods via gems. sudo gem install cocoapods returns the error below. I compared the proxy and DNS configuration and it is identical to other macs that can install successfully. ▶ ping https://rubygems.org ping: cannot resolve https://rubygems.org: Unknown host What is causing cocoapods installation to fail with the cryptic no such name (https://rubygems.org/specs.4.8.gz) error message? I tried the

Is there a way to conditionally define a Podspec property depending on static or dynamic usage?

喜夏-厌秋 提交于 2019-12-11 16:06:49
问题 I'm including a Swift source in my CocoaPods library for the first time. For me to get the project to compile, I need to import the generated Swift header into my Objective-C source. This takes two different forms, depending on whether the project is being built as a static library or a dynamic framework: #ifdef BUILT_AS_FRAMEWORK #import <UnzipKit/UnzipKit-Swift.h> #else // Used when built as a static library #import "UnzipKit-Swift.h" #endif I'm defining BUILT_AS_FRAMEWORK in my Xcode

ios,pod 更新版本和降级版本,OSX 10.10+,打包pod,全教程

淺唱寂寞╮ 提交于 2019-12-11 14:33:24
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> ####cocoaPods详细教程 参考 标哥的技术博客 等,本文原创,转载请注明出处,打包pod请参考另外一篇博客 ###以下列举更新和卸载时候的问题,会在容易出错的地方注明请大家注意 //更新pod sudo gem update --system // 先更新gem,国内需要切换源 gem sources --remove https://rubygems.org/ gem sources -a http://ruby.taobao.org/ gem sources -l CURRENT SOURCES http://ruby.taobao.org/ sudo gem install cocoapods // 安装cocoapods pod setup //不绕过osx10.11的安全设置正常更新 sudo gem install cocoapods sudo gem install -n /usr/local/bin cocoapods gem --version pod --version //创建一个Podfile touch Podfile vi Podfile /* ###降级pod版本 which pod sudo rm -rf <path> //sudo rm -rf /usr/local

Why is my app returning hundreds of errors that say “undefinedSymbol”?

末鹿安然 提交于 2019-12-11 14:29:54
问题 I am trying to archive my Xcode Project to send it to App Store Connect. The project is running completely fine on a normal build and run in the simulator or on a device. However when I archive my project, it returns 100-112 errors that begin with "undefinedSymbol." This happens even after I clean the build folder and restart Xcode. I looked around Stack Overflow to see if I could find any solutions. I found this question and tried all of the following solution provided in the answers: Set