gpt4 book ai didi

objective-c - 由于 `pod spec lint`,无法 `undeclared type: xxx` pod

转载 作者:行者123 更新时间:2023-11-30 13:01:03 25 4
gpt4 key购买 nike

我正在将 Xcode 框架“转换”为 Cocoapod。我已经深入了解了这个过程,但我无法让 pod 起绒。它有点像一个混合项目,同时使用 ObjC 和 Swift,但它在 Xcode 中构建得很好,但不是通过 lint,这让我觉得涉及 Cocoapods 的东西很奇怪。

错误:

    - ERROR | [OSX] xcodebuild:  EonilFileSystemEvents/EonilFileSystemEvents/FileSystemEventMonitor.swift:17:43: error: use of undeclared type 'EonilFileSystemEventFlag'
- ERROR | [OSX] xcodebuild: EonilFileSystemEvents/EonilFileSystemEvents/FileSystemEventMonitor.swift:89:28: error: use of undeclared type 'EonilJustFSEventStreamWrapper'
- ERROR | [OSX] xcodebuild: EonilFileSystemEvents/EonilFileSystemEvents/FileSystemEventMonitor.swift:63:15: error: use of unresolved identifier 'EonilJustFSEventStreamWrapper'
- ERROR | [OSX] xcodebuild: EonilFileSystemEvents/EonilFileSystemEvents/FileSystemEventMonitor.swift:138:14: error: use of unresolved identifier 'NSStringFromFSEventStreamEventFlags'

EonilFileSystemEvents.podspec:

#
# Be sure to run `pod spec lint rebekka.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|
s.name = "EonilFileSystemEvents"
s.version = "0.0.4"
s.summary = "Dead-simple access to FSEvents framework for Swift."
s.description = "Provides dead-simple access to FSEvents framework for Swift by Hoon H."

s.homepage = "https://github.com/128keaton/FileSystemEvents"
s.license = "MIT License"
s.author = "Hoon H"
s.frameworks = 'CoreServices', 'EonilFileSystemEvents'

s.requires_arc = true

s.osx.deployment_target = "10.10"
s.source = { :git => "https://github.com/128keaton/FileSystemEvents", :tag => "0.0.4" }
s.source_files = "EonilFileSystemEvents/*.{h,m}"
s.source_files = 'EonilFileSystemEvents/*.swift'

end

项目: https://github.com/128keaton/FileSystemEvents

最佳答案

用途:

s.source_files  = "EonilFileSystemEvents/*.{h,m}", 'EonilFileSystemEvents/*.swift'` 

而不是:

s.source_files  = "EonilFileSystemEvents/*.{h,m}"
s.source_files = 'EonilFileSystemEvents/*.swift'

关于objective-c - 由于 `pod spec lint`,无法 `undeclared type: xxx` pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39900553/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com