iOS 报错 CodeSign error: code signing is required for product type 'App Extension' in SDK 'iOS 8.1'

今天新建了一个Today Extension的target.后来需求改了.不需要Today Extension了,就把manage scheme和extension文件删除了.然后报错

Code Sign error: Automatic provisioning profile selection unavailable: A bundle identifier is required for automatic provisioning profile selection. Either enter a bundle identifier in the Info.plist, or select a provisioning profile to use in the build settings.


因为我没有删除项目配置的target.把项目的target删除就ok啦.但是运行一下.Today Extension还在.这时候只要卸载应用,clean一下项目就好了.


*注意: 扩展target显示错误时候

          1. clean一下项目.

          2. 卸载应用.

          3. 重新运行

** 如果还是不行就手机重启,(*^__^*)……

你可能感兴趣的:(iOS 报错 CodeSign error: code signing is required for product type 'App Extension' in SDK 'iOS 8.1')