我在一个新项目中使用嵌入式框架来自定义视图,以利用Xcode 6中新的@IBDesignable内容,并且我想用Facebook的Pop来动画这些视图.我已经使用Cocoapods将Pop添加到项目中,但嵌入式框架无法访问这些文件('POP/pop.h' file not found).
我尝试将Cocoapods相关的构建阶段从应用程序目标复制到自定义框架目标,但它们不能按原样运行.将Pop文件夹直接复制到嵌入式框架中的工作原理是什么,但Xcode告诉我,我必须将所有尖括号更改<POP/pop.h>为引号"POP/pop.h".我假设有一个更好的方法,我在消隐.
我按照Cocoapods的指示.
下面是我的Podfile:
platform :ios, '8.2'
pod 'SwiftyJSON', '~> 2.1'
pod 'SwiftSpinner', '~> 0.6'
pod 'Alamofire', '~> 1.1'
pod 'SuperRecord', '~> 1.2'
pod 'Toucan
Run Code Online (Sandbox Code Playgroud)
当我做pod安装时,我收到以下错误:
用Swift编写的Pod只能作为框架集成; 此功能仍处于测试阶段.添加
use_frameworks!到您的Podfile或目标以选择使用它.
更新:
以下是我的控制台日志:
$ pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (1.1.4)
Installing SuperRecord (1.2)
Installing SwiftSpinner (0.6.0)
Installing SwiftyJSON (2.1.3)
Installing Toucan (0.2.0)
[!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add `use_frameworks!` to your Podfile or target to opt …Run Code Online (Sandbox Code Playgroud) 我目前设置遗留在Podfile给SWIFT_VERSION = 2.3,但有些我使用的库都雨燕3.0,这意味着我需要手动设置遗留的所有Swift 3.0吊舱遗留给No每个pod install.如何在Podfile安装程序中配置每个pod版本?
这就是我设置的内容:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end
Run Code Online (Sandbox Code Playgroud)
如果我设置config.build_settings['SWIFT_VERSION'] = '3.0',比我们有Swift 2.3pods的问题.最好的解决方案是,如果我们单独设置每个pod旧版本,以避免必须手动设置它.
我刚刚使用“pod update”命令更新了我的 pod,我使用了 Firebase pod。我添加了新的 pod,然后当我编译我的项目时,出现了几个错误,如下所示:
- Umbrella header for module 'GoogleDataTransport' does not include header 'GDTEventDataObject.h'
- Umbrella header for module 'GoogleDataTransport' does not include header 'GDTClock.h'
...
...
Run Code Online (Sandbox Code Playgroud)
我 - 使用 swift5 - Xcode 11.0 - macOS 10.15
我在尝试使用我的主项目之前尝试了一些pod我想确保它能够满足我的要求.最简单的方法是在游乐场尝试.
我试着pod init用不起作用的操场
[!]没有找到xcode项目,请注明一个
非常感谢帮助.
我最近将swift文件添加到我的测试目标(结合旧的可可触摸类).
为什么cocoapods抱怨嵌入内容包含构建设置中的快速设置?
[!] YOURP-PROJECT-Tests [Debug]目标覆盖在Pods/Target Support Files/Pods-YOUR-PROJECT-Tests/Pods-YOUR-PROJECT-Tests.debug.xcconfig中定义的EMBEDDED_CONTENT_CONTAINS_SWIFT构建设置.这可能导致CocoaPods安装出现问题
升级到Xcode 10.2后,出现2个错误
:-1:无法加载文件列表的内容:'xxxxx / Pods /目标支持文件/Pods-xxxx/Pods-xxxxx-frameworks-Debug-input-files.xcfilelist'(在目标'xxxxx'中)
:-1:无法加载文件列表的内容:'xxxxx / Pods /目标支持文件/Pods-xxxxx/Pods-xxxxx-frameworks-Debug-output-files.xcfilelist'(在目标'xxxxx'中)
我更新了所有Pod,并将构建系统更改为“旧版构建系统”,但仍然遇到相同的构建错误
我的颤振项目无法在 ios 设备上运行。我试过下面的命令sudo gem install cocoapods。
颤动运行:
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
To install:
sudo gem install cocoapods
pod setup
Running Xcode build...
Xcode build done. 4.3s
Failed to build iOS app
Error output from Xcode build:
?
** BUILD FAILED **
Xcode's …Run Code Online (Sandbox Code Playgroud) 我的应用程序运行良好,直到我做了 2 个小更改。
Android Studio 大黄蜂 | 2021.1.1 Build #AI-211.7628.21.2111.8092744,构建于 2022 年 1 月 19 日 运行时版本:11.0.11+0-b60-7590822 x86_64 VM:OpenJDK 64 位服务器 VM by JetBrains sro macOS 12.0.1 GC:G1年轻一代、G1 老一代内存:1280M 核心:4 注册表:external.system.auto.import.disabled=true 非捆绑插件:Dart (211.7798)、org.jetbrains.kotlin (211-1.6.10-release-923 -AS7442.40), io.flutter (63.2.2)
之后,当我在 iOS 模拟器上运行我的 flutter 应用程序时,我收到此错误。虽然我已经禁用了位码并再次尝试。我得到了同样的错误。我安装并重新安装了 cocapoads 还是同样的错误。我不知道是什么原因导致这个错误。你能帮我吗?请
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the …Run Code Online (Sandbox Code Playgroud) 安装新的CocoaPod时,出现以下错误.
$ pod install
Analyzing dependencies
[!] Pod::Executable pull
A AFHARchiver/0.2.1/AFHARchiver.podspec
A AFWunderlist/1.0/AFWunderlist.podspec
A AFWunderlist/1.1/AFWunderlist.podspec
A AFgzipRequestSerializer/0.0.1/AFgzipRequestSerializer.podspec
Run Code Online (Sandbox Code Playgroud)
...
A wpxmlrpc/0.4/wpxmlrpc.podspec
A zipzap/6.0/zipzap.podspec
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use `'git add/rm <file>'`
as appropriate to mark resolution, or use `'git commit -a'`.
Run Code Online (Sandbox Code Playgroud)
以为我会分享下面的修复.