我的swift的项目用的是swift 2.3的版本,但是用CocoaPods迁入一个第三方:ObjectMapper后,编译会出现这样一个问题: Use Legacy Swift Language Version" (SWIFT_VERSION) is required to be configured correctly for target... 如图: 这里ObjectMapper库报错,原因打开工程会Xcode会提示你覆盖到最新的版本. 但是即使我按照要求[Edit - Convert…
编译动态库时遇到如下错误: ... ... relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ... could not read symbols: Bad value 解决办法编译器已经提示了:recompile with -fPIC 但是我们应该重新编译谁带上这个参数呢? 答案是:在编译.o文件的时候,而不是在编译生…
Xcode8—Swift开发使用Cocoapods引入第三方库异常处理方法 参考: http://www.jianshu.com/p/23f13be525a0 //podfile文件如下 platform :ios, '10.0' use_frameworks! target 'testSWift' do pod 'Alamofire', '~> 4.4.0' end post_install do |installer| installer.pods_project.targets.each…
在项目中有时候会遇到Library not found for -lPods(这里的IPods指的是你具体的第三方库)的问题 出现这个错误的原因是:xcode在编译的时候找不到这个库,从而导致项目无法编译! 这里给出几种解决办法: 第一种: Search from 'Library' from the Target Settings view and double-click to inspect the value of Library Search Paths There are two v…