Module file's deployment target is ios9.0 v9.0 with XCode 7 / Swift 2

不想你离开。 提交于 2019-12-03 04:46:54
ioopl

Same, in my case

Selected TARGETS,

then go to "Build Settings"

Search for "iOS Deployment target” in search bar

Changed it from iOS 8.2 to 9.0 - in all

In case you have to support older versions and you don't have the option to just upgrade the deployment target of your project to required version, try downgrade it in a pod itself:

  1. Select Pods project in Project Navigator
  2. Go through every pod in TARGETS list and change its Deployment Target to the version you need
  3. Clean and Build your project

Worked for me. show snapshot from Xcode

For me, wiping out DerivedData fixed the issue. It seems that clean does not wipe out swiftmodule files.

rm -rf ~/Library/Developer/Xcode/DerivedData

Just put "platform :ios, '8.0'" or whatever is your version in your Podfile and it will be solved.

You have to update podspec file to s.ios.deployment_target = '9.0'

In my case, where the imported module of Pod FOO was failing because it needed version X:

  • main app/project/targets were all set to minimum deployment target >= X [OK]
  • pod FOO itself had correct >= X minimum deployment target in its podspec [OK]
  • another pod, BAR, was using pod FOO, and BAR's minimum deployment target was less than X. [FIXED: edit BAR's podspec and increase min deployment target to at least X]

tl;dr; it could be that you're using pod 1 which is using another pod 2; the problem is in pod 1's podspec

You need to go to Pods, and for every target inside that, set the same development target as you do for the main project, clean and build again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!