ERROR ITMS-90685:“CFBundleIdentifier Collision。有不止一个捆绑“ [英] ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle"

查看:2266
本文介绍了ERROR ITMS-90685:“CFBundleIdentifier Collision。有不止一个捆绑“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将我的应用程序提交到应用程序商店时,我收到错误:

When I am try to submit my app to app store, I am getting the error:


错误ITMS-90685 :CFBundleIdentifier Collision。应用程序ProjectName.app下的CFBundleIdentifier值
com.companyname.projectName有一个超过
的捆绑包

ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value com.companyname.projectName under the application ProjectName.app"

任何人都可以帮助我吗?

Can any one help me?

推荐答案

你有一个App扩展吗?你的应用?
我有这个错误,因为Cocoapods嵌入式框架在App Extension文件夹中。

Have you got an App Extension in your app? I had this error because of Cocoapods embedded frameworks inside App Extension folder.

你需要删除构建阶段'[CP]嵌入来自扩展目标的Pods Frameworks'

我为此编写了这样的ruby脚本:

I wrote such ruby script for that:

# remove.rb
require 'xcodeproj'

project_path = "Keyboard.xcodeproj"
project = Xcodeproj::Project.open(project_path)
project.targets.each do |target|
    puts target.name
    if target.name.include?("Extension")
        phase = target.shell_script_build_phases.find { |bp| bp.name == '[CP] Embed Pods Frameworks' }
        if !phase.nil?
            puts "Deleting Embed Pods Frameworks phase from #{target.name}…"
            target.build_phases.delete(phase)
        end
    end
end

project.save

CocoaPods 1.1.0 中应该修复: https://github.com/CocoaPods/CocoaPods/issues/4203

这篇关于ERROR ITMS-90685:“CFBundleIdentifier Collision。有不止一个捆绑“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆