Xcode 8.3 / Xcode 9.0刷新配置文件设备

时间:2017-05-19 02:29:37

标签: ios xcode provisioning-profile

我添加了一些新设备。如何刷新配置文件,因为Xcode 8会自动管理签名资产?

我发现了这个问题:Refresh devices in team provisioning profile managed by Xcode 7? - 但我们不能在Xcode 8.3中这样做。

我没有设备,所以我手动将其添加到门户中,并编辑了配置文件,但Xcode没有重新下载。

5 个答案:

答案 0 :(得分:260)

这是你需要做的。

  1. 转到DEBUG: No META-INF/validation.xml found. Using annotation based configuration only. 19-May-2017 09:16:14.276 SEVERE [localhost-startStop-1] org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module deployment failed org.apache.webbeans.exception.WebBeansDeploymentException: javax.enterprise.inject.AmbiguousResolutionException: There is more than one Bean with type javax.validation.ValidatorQualifiers: [@javax.enterprise.inject.Default()] for injection into Field Injection Point, field name : validator, Bean Owner : [ValidationInterceptor, WebBeansType:INTERCEPTOR, Name:null, API Types:[java.io.Serializable,java.lang.Object,org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor], Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]] found beans: Validator, WebBeansType:VALIDATION, Name:null, API Types:[java.lang.Object,javax.validation.Validator], Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any] from jar:file:/webserver/tomee/lib/javaee-api-7.0-1.jar!/javax/validation/Validator.class ValidatorImpl, WebBeansType:THIRDPARTY, Name:null, API Types:[org.hibernate.validator.internal.engine.ValidatorImpl,javax.validation.executable.ExecutableValidator,java.lang.Object,javax.validation.Validator], Qualifiers:[javax.enterprise.inject.Default,org.hibernate.validator.cdi.HibernateValidator,javax.enterprise.inject.Any] from jar:file:/webserver/tomee/lib/hibernate-validator-5.4.0.Final.jar!/org/hibernate/validator/internal/engine/ValidatorImpl.class at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:331) at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:196) at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:189) at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:41) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:914) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:718) at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1298) at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1124) at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5087) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: javax.enterprise.inject.AmbiguousResolutionException: There is more than one Bean with type javax.validation.ValidatorQualifiers: [@javax.enterprise.inject.Default()] for injection into Field Injection Point, field name : validator, Bean Owner : [ValidationInterceptor, WebBeansType:INTERCEPTOR, Name:null, API Types:[java.io.Serializable,java.lang.Object,org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor], Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]] 并从中删除所有配置文件。
  2. 转到XCode>偏好>帐户并选择Apple Id。
  3. 点击~/Library/MobileDevice/Provisioning\ Profiles/。它将再次下载所有配置文件。
  4. enter image description here

    Xcode 9

    第1步和第2步保持不变。

    1. 点击Download All Profiles更新您的配置文件。

答案 1 :(得分:48)

以这种方式删除应用的 .mobileprovision 文件:

终端中的命令是:rm

enter image description here

答案 2 :(得分:15)

步骤1.点击桌面然后从顶部菜单开始> 转到文件夹...

enter image description here

步骤2. 写入/粘贴跟随路径并输入:

  

〜/ Library / MobileDevice / Provisioning \ Profiles /

enter image description here

步骤3.选择配置文件文件夹并删除其中的所有配置文件

enter image description here

步骤4.转到xCode 首选项> 帐户> Apple ID ,然后点击下载手动配置文件按钮

enter image description here

答案 3 :(得分:6)

首先从~/Library/MobileDevice/Provisioning\Profiles/删除配置文件,然后在开发人员门户中修改配置文件,并在编辑配置文件时选择所有设备。然后下载此个人资料并在 Xcode 中打开。

答案 4 :(得分:3)

要使用自动代码签名将设备添加到Xcode 8中的配置文件中,您只需在Xcode中构建设备即可。 Xcode将添加设备的UDID并自动重新生成配置文件。如果您没有对设备的物理访问权限,我认为没有办法将其添加到您的配置文件中,而无需返回手动管理您的设备和配置文件。