Sto "convertendo" un Xcodequadro in un Cocoapod. Sono arrivato molto avanti nel processo, ma non riesco a far filtrare il pod, è un progetto un po 'ibrido, usando sia ObjC che Swift, ma funziona bene in Xcode, ma non attraverso i lanci, il che mi fa pensare a qualcosa coinvolgere i Cocoapods è fottutamente
Errore:
- 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
Progetto: https://github.com/128keaton/FileSystemEvents
risposte:
0 per risposta № 1Uso:
s.source_files = "EonilFileSystemEvents/*.{h,m}", "EonilFileSystemEvents/*.swift"`
invece di:
s.source_files = "EonilFileSystemEvents/*.{h,m}"
s.source_files = "EonilFileSystemEvents/*.swift"