xcode编译成功后出现AFNetworking.framework did not have a CFBundleIdentifier in its Info.plist

Xcode编译成功后出现AFNetworking.framework did not have a CFBundleIdentifier in its Info.plist

  • 解决办法
  1. product -> clean (按住alt) ->重新build
20170713_203421.png

注意 clean 和 clean build folder的区别

  1. clean的基本作用是清除编译过程中所有文件产生的中间文件、目标文件以及可执行文件,使得项目回到没有编译过的初始状态;根据试验,每次编译的过程中并不会自动clean,所以不会重新生成上述的资源文件

  2. clean build folder的基本作用是清除编译文件本身(清除info.plist达到效果),相当于全部文件都没有编译过

  • 其他可能解决的办法
  1. rm -rf ~/Library/Developer/Xcode/DerivedData/
  1. gem uninstall cocoapods, gem install cocoapods and pod install
    pod install
    clean xcode using cmd+k

参考文章

http://cache.baiducontent.com/c?m=9d78d513d9921ff80bb1837e7c46903d470297634d838d4b2983d35cd424054e1d20a5f930236319ce9a272752fe170bbbaa6b37200357e7c595dd0b9fe6d43f2fff76692f01864311d504adcb5b73967ec71cb2f34cf0ba8678c2f38484c854259b005420d7e78b2c514a9d3cac4f6db6b1993e45184be4bb276588033176c1&p=b4769a4786cc41ac58f68a68154488&newp=c9769a47cc934eaf5bedd3234e0ac4231601d42623808c0a3e948c0cc82636474c72b5e04a664744929e213b0eab4f5ceff23770330825b799cc8a40d8bf982b3bce4a75275e89164e8503&user=baidu&fm=sc&query=clean+build+folder&qid=eb44de9c00001f43&p1=9

你可能感兴趣的:(xcode编译成功后出现AFNetworking.framework did not have a CFBundleIdentifier in its Info.plist)