cocoapods

Multiple commands produce error GTMSession

爱⌒轻易说出口 提交于 2020-12-15 04:14:17
问题 I would like to archive my project so I can upload it to Apple-Connect but I am facing this issue: I also get this these messages: I googled it and I found that this is quite a common issue, which you can usually resolve by deleting a info.plist file from Build Phase . However there is no such a file in the regarding Build Phases . These are my pods for GTM : Build Phase for GTMSessionFetcher-Core : Build Phase for GTMSessionFetcher.default-Core : My podfile : # Uncomment the next line to

XCTest: running tests fails with Cycle inside X; building could produce unreliable results in project with CocoaPods and Carthage

こ雲淡風輕ζ 提交于 2020-12-13 03:39:56
问题 After upgrading my project to Xcode 12, the test suite stopped working. The tests target doesn't compile, fails with: Cycle inside <redacted>Tests; building could produce unreliable results. This usually can be resolved by moving the shell script phase '[CP] Embed Pods Frameworks' so that it runs before the build phase that depends on its outputs. Cycle details: → Target '<redacted>Tests' has copy command from '/Applications/Xcode12.app/Contents/Developer/Platforms/iPhoneSimulator.platform

XCTest: running tests fails with Cycle inside X; building could produce unreliable results in project with CocoaPods and Carthage

空扰寡人 提交于 2020-12-13 03:39:55
问题 After upgrading my project to Xcode 12, the test suite stopped working. The tests target doesn't compile, fails with: Cycle inside <redacted>Tests; building could produce unreliable results. This usually can be resolved by moving the shell script phase '[CP] Embed Pods Frameworks' so that it runs before the build phase that depends on its outputs. Cycle details: → Target '<redacted>Tests' has copy command from '/Applications/Xcode12.app/Contents/Developer/Platforms/iPhoneSimulator.platform

Unable to install cocoa pods

混江龙づ霸主 提交于 2020-12-08 16:02:03
问题 I want to install cocoapods on MacOS to run the pod command. But on doing sudo gem install cocoa-pods I get the following: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /usr/local/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/ext/ffi_c /usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0 -r ./siteconf20200702-22528-1o4wbn0.rb extconf.rb checking for ffi.h... *** extconf

Unable to install cocoa pods

自古美人都是妖i 提交于 2020-12-08 15:54:07
问题 I want to install cocoapods on MacOS to run the pod command. But on doing sudo gem install cocoa-pods I get the following: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /usr/local/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/ext/ffi_c /usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0 -r ./siteconf20200702-22528-1o4wbn0.rb extconf.rb checking for ffi.h... *** extconf

Unable to install cocoa pods

。_饼干妹妹 提交于 2020-12-08 15:52:31
问题 I want to install cocoapods on MacOS to run the pod command. But on doing sudo gem install cocoa-pods I get the following: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /usr/local/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/ext/ffi_c /usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0 -r ./siteconf20200702-22528-1o4wbn0.rb extconf.rb checking for ffi.h... *** extconf

pod update更新error: RPC failed; curl 18 transfer closed with outstanding read data remaining

泪湿孤枕 提交于 2020-12-06 16:15:41
1、 pod update 的时候出现下边的错误 error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed [!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose` 然后尝试了各种办法: 1.1更新http下载对速度的限制因为curl的postBuffer默认值太小的原因,而项目可能本身比较大,所以下载失败。1、Git config –global http.postBuffer 524288000结果都以失败告终。 解决方案看了 简书 的一篇文章:上面错误主要是os10.11+和cocoapods1.0+版本升级的安全机制更改造成的。主要出现在pod setup过程中。且该过程等待时间非常长,所以,你可以在$sudo gem install -n /usr

cocoapods获取图片地址失败

血红的双手。 提交于 2020-12-06 10:06:13
UIImage *image = [UIImage imageNamed:@"Hello"]; // 赋值到Xcode工程中,肉眼不可见空格 通过上述代码获取图片信息,但是死活获取不到。 尝试了网上的方法使用Bundle,依然无果 + (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle withConfiguration:(nullable UIImageConfiguration *)configuration API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0)); 最后关注点转移到@“Hello”字符上,打印下如下 NSString *str = @"Hello"; // xcode空格没显示 NSLog(@"Str = %@",str); Str = Hello\^P 打印结果多了\^P 在Word中是软回车符,为什么会在Xcode中隐藏特殊字符,至此我复制到了Sublime Text上 发现多了个<0x10>??? 通过十六进制ASCII表代表的是DLE 英文缩写词:DLE 英文单词:Data Link Escape 缩写词中文简要解释:数据链路转义 以下手敲字符串和复制的字符串,肉眼看不出哪不一样

Add the Firebase iOS SDK (4.3.0 or higher) or Unity Plugin (6.15.0 or higher), then build, run, and crash your app

杀马特。学长 韩版系。学妹 提交于 2020-12-05 12:28:26
问题 I am trying to integrate with Firebase Crashlytics. I added the run scripts as described here. then installed the pods: pod 'Firebase/Crashlytics' pod 'Firebase/Analytics' I configured the Firebase APIs: FirebaseApp.configure() I ran the app. the messages on the console seems to be ok. But when I open the Crashlytics tab in the firebase console. I only get the message in the question title. This is what I have in my Podfile.lock : - Firebase (6.33.0): 回答1: Add the dSYM to the debug file the

CocoaPods: use static lib into a pod

£可爱£侵袭症+ 提交于 2020-12-05 11:00:31
问题 I have a pod that depends on a static lib (precompiled, source code not available). In this pod project, i drag and drop the folder containing the ".a" file and some other C, Obj-c files. When i try to include this pod in an application, Cocoapods copy all that pod files but not the ".a" file. In the Podspec, im using this to include the precompiled library to my pod s.ios.vendored_frameworks = 'path/a_staticLib.a' The line above copy the file in frameworks (Pods folder), this is normal as it