错误:模块文件的最小部署目标是ios8.3 v8.3。

时间:2023-01-23 19:07:51

All attempts to import a dynamic framework in an Xcode playground yield the following error:

所有在Xcode游戏中导入动态框架的尝试都会产生以下错误:

error: module file's minimum deployment target is ios8.3 v8.3

7 个解决方案

#1


69  

You might have created a target after updating Xcode, which made 8.3 the iOS Deployment Target in Build Settings for that target.

在更新Xcode之后,您可能已经创建了一个目标,它在为该目标的构建设置中设置了8.3个iOS部署目标。

I fixed this by:

我固定的:

  1. Setting the iOS Deployment Target to 8.0 (Which is the same as the rest of the project)
  2. 将iOS部署目标设置为8.0(与项目的其他部分相同)

Note iOS version mismatch in this screenshot (one is 10.0, other is 9.3) 错误:模块文件的最小部署目标是ios8.3 v8.3。

注意,在这个截图中iOS版本不匹配(一个是10.0,另一个是9.3)

Note iOS versions now match (make sure they all match) 错误:模块文件的最小部署目标是ios8.3 v8.3。

注意,iOS版本现在匹配(确保它们都匹配)

  1. Doing a clean (Command+Shift+k) and build
  2. 做一个干净的(命令+Shift+k)和构建。

If a clean+build doesn't fix it, switching the device/simulator that you are deploying to from the scheme menu and building again should help.

如果一个clean+build没有修复它,那么切换到从scheme菜单和构建中部署的设备/模拟器将会有所帮助。

#2


40  

This error might also crop up if you're unit testing. So in addition to what @Tony and @Allreadyhome has suggested, do the following:

如果是单元测试,这个错误也会出现。因此,除了@Tony和@Allreadyhome建议的之外,做以下事情:

  • With your test target selected, go to 'Build Settings'
  • 选择您的测试目标,进入“构建设置”
  • Search for 'iOS Deployment target' at the top search bar.
  • 在顶部搜索栏搜索“iOS部署目标”。
  • Change the value for the iOS Deployment Target accordingly, (in the context of this question, you will change the deployment target to 8.0)
  • 相应地更改iOS部署目标的值(在这个问题的上下文中,您将将部署目标更改为8.0)

And you should be good.

你应该很好。

#3


15  

As mentioned by Tony you have to

正如Tony提到的。

1. Set the iOS Deployment Target to 8.0

1。将iOS部署目标设置为8.0。

If using Pods the further step you may need to do:

如果使用豆荚,你可能需要做的进一步的步骤:

2. Go into the Pods dependancies and change the deployment targets to 8.0 also.

2。进入吊舱,并将部署目标更改为8.0。

In my case, I had to change the deployment target on each of my pods to 8.0 as they were all on 8.3.

在我的例子中,我必须将每个pod的部署目标更改为8.0,因为它们都在8.3上。

#4


11  

In your Pod File, just delete the comment at this line:

在您的Pod文件中,只需删除这一行的注释:

platform :ios, '8.0'

It work for me.

它为我工作。

#5


5  

I've encountered error:

我遇到错误:

Module file's minimum deployment target is ios9.2 v9.2

After I changed the iOS deployment target to 8.0 for my PROJECT. The project is created by Xcode 7.2, with 'Include Unit Tests' and 'Include UI Tests' checked.

在我将iOS部署目标更改为8.0之后。该项目由Xcode 7.2创建,其中包括“包含单元测试”和“包括UI测试”。

Because of the XCUIApplication() requires iOS 9.0+, to fix the error, just change the deployment target of UI Tests to 9.0 or above, and leaves 8.0 for other targets.

由于XCUIApplication()需要ios9.0 +来修复错误,只需将UI测试的部署目标更改为9.0或以上,并为其他目标保留8.0。

#6


1  

1) Goto, Target -> General -> deployment Info

1)Goto,目标->通用->部署信息。

2) set the deployment Target as the one being prompted in the error message(8.3 in your case).

2)将部署目标设置为错误消息中提示的对象(在您的例子中为8.3)。

3) product -> clean

3)产品- >干净

4) product -> Build

4)产品- >构建

#7


0  

I had this problem when the minimum deployment target of a select few dependencies was set to a more recent iOS version than main targets minimum deployment target.

我遇到了这个问题,当一个选择的少数依赖项的最小部署目标被设置为最近的iOS版本,而不是主要目标的最小部署目标。

#1


69  

You might have created a target after updating Xcode, which made 8.3 the iOS Deployment Target in Build Settings for that target.

在更新Xcode之后,您可能已经创建了一个目标,它在为该目标的构建设置中设置了8.3个iOS部署目标。

I fixed this by:

我固定的:

  1. Setting the iOS Deployment Target to 8.0 (Which is the same as the rest of the project)
  2. 将iOS部署目标设置为8.0(与项目的其他部分相同)

Note iOS version mismatch in this screenshot (one is 10.0, other is 9.3) 错误:模块文件的最小部署目标是ios8.3 v8.3。

注意,在这个截图中iOS版本不匹配(一个是10.0,另一个是9.3)

Note iOS versions now match (make sure they all match) 错误:模块文件的最小部署目标是ios8.3 v8.3。

注意,iOS版本现在匹配(确保它们都匹配)

  1. Doing a clean (Command+Shift+k) and build
  2. 做一个干净的(命令+Shift+k)和构建。

If a clean+build doesn't fix it, switching the device/simulator that you are deploying to from the scheme menu and building again should help.

如果一个clean+build没有修复它,那么切换到从scheme菜单和构建中部署的设备/模拟器将会有所帮助。

#2


40  

This error might also crop up if you're unit testing. So in addition to what @Tony and @Allreadyhome has suggested, do the following:

如果是单元测试,这个错误也会出现。因此,除了@Tony和@Allreadyhome建议的之外,做以下事情:

  • With your test target selected, go to 'Build Settings'
  • 选择您的测试目标,进入“构建设置”
  • Search for 'iOS Deployment target' at the top search bar.
  • 在顶部搜索栏搜索“iOS部署目标”。
  • Change the value for the iOS Deployment Target accordingly, (in the context of this question, you will change the deployment target to 8.0)
  • 相应地更改iOS部署目标的值(在这个问题的上下文中,您将将部署目标更改为8.0)

And you should be good.

你应该很好。

#3


15  

As mentioned by Tony you have to

正如Tony提到的。

1. Set the iOS Deployment Target to 8.0

1。将iOS部署目标设置为8.0。

If using Pods the further step you may need to do:

如果使用豆荚,你可能需要做的进一步的步骤:

2. Go into the Pods dependancies and change the deployment targets to 8.0 also.

2。进入吊舱,并将部署目标更改为8.0。

In my case, I had to change the deployment target on each of my pods to 8.0 as they were all on 8.3.

在我的例子中,我必须将每个pod的部署目标更改为8.0,因为它们都在8.3上。

#4


11  

In your Pod File, just delete the comment at this line:

在您的Pod文件中,只需删除这一行的注释:

platform :ios, '8.0'

It work for me.

它为我工作。

#5


5  

I've encountered error:

我遇到错误:

Module file's minimum deployment target is ios9.2 v9.2

After I changed the iOS deployment target to 8.0 for my PROJECT. The project is created by Xcode 7.2, with 'Include Unit Tests' and 'Include UI Tests' checked.

在我将iOS部署目标更改为8.0之后。该项目由Xcode 7.2创建,其中包括“包含单元测试”和“包括UI测试”。

Because of the XCUIApplication() requires iOS 9.0+, to fix the error, just change the deployment target of UI Tests to 9.0 or above, and leaves 8.0 for other targets.

由于XCUIApplication()需要ios9.0 +来修复错误,只需将UI测试的部署目标更改为9.0或以上,并为其他目标保留8.0。

#6


1  

1) Goto, Target -> General -> deployment Info

1)Goto,目标->通用->部署信息。

2) set the deployment Target as the one being prompted in the error message(8.3 in your case).

2)将部署目标设置为错误消息中提示的对象(在您的例子中为8.3)。

3) product -> clean

3)产品- >干净

4) product -> Build

4)产品- >构建

#7


0  

I had this problem when the minimum deployment target of a select few dependencies was set to a more recent iOS version than main targets minimum deployment target.

我遇到了这个问题,当一个选择的少数依赖项的最小部署目标被设置为最近的iOS版本,而不是主要目标的最小部署目标。