/Podfile.lock:没有这样的文件或目录 - 没有解决方案吗?

时间:2017-10-26 21:20:04

标签: ios xcode cocoapods podspec

好的,我已经查看了与此问题相关的几乎所有其他问题Xcode /Podfile.lock: No such filediff: /../Podfile.lock: No such file or directory

这些解决方案中没有一个对我有用。仅在1个项目中,我收到了以下错误:

enter image description here

我做了什么/尝试过:

  1. pod deintegrate
  2. 删除了pod文件和pod文件夹
  3. 清洁xcode
  4. 再次尝试使用pod init
  5. pod install
  6. 清洁Xcode
  7. 我也做过

    1. sudo gem install cocoapods
    2. pod install
    3. 再次清洁
    4. 这里有什么问题?为什么只是这个项目?

      编辑:

      终端错误:

      [!] The Podfile does not contain any dependencies.
      
      [!] Automatically assigning platform `ios` with version `11.0` on target `LittleBot` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
      
      [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `LittleBot` to `Pods/Target Support Files/Pods-LittleBot/Pods-LittleBot.debug.xcconfig` or include the `Pods/Target Support Files/Pods-LittleBot/Pods-LittleBot.debug.xcconfig` in your build configuration (`Configuration/SampleCode.xcconfig`).
      
      [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `LittleBot` to `Pods/Target Support Files/Pods-LittleBot/Pods-LittleBot.release.xcconfig` or include the `Pods/Target Support Files/Pods-LittleBot/Pods-LittleBot.release.xcconfig` in your build configuration (`Configuration/SampleCode.xcconfig`).
      

      配置/ SampleCode.xcconfig:

      // // SampleCode.xcconfig //

      // The `SAMPLE_CODE_DISAMBIGUATOR` configuration is to make it easier to build
      // and run a sample code project. Once you set your project's development team,
      // you'll have a unique bundle identifier. This is because the bundle identifier
      // is derived based on the 'SAMPLE_CODE_DISAMBIGUATOR' value. Do not use this
      // approach in your own projects—it's only useful for sample code projects because
      // they are frequently downloaded and don't have a development team set.
      SAMPLE_CODE_DISAMBIGUATOR=${DEVELOPMENT_TEAM}
      

0 个答案:

没有答案
相关问题