2016-03-27 11 views
0

Artık bir osx uygulamasına ihtiyaç duyan bir iOS uygulamasına sahibim. % 80 -ish paylaşılan kod olduğu için projeye bir OSX yapısı ekledim.CocoaPods - iOS, yeni OSX hedefi ekle, doğru bir şekilde bağlantı oluşturmuyor mu?

Cocoapod'larımla birkaç derleme hatası alıyorum (pod kurulumundan sonra, ayrıca pod güncellemesini denedim) Ayrıca, bağlantıyı yapmak ve faz büyüsü oluşturmak için osx hedefine açıkça bir kapsül eklediğimi de buldum. çalışma alanı dosyası.

birinci ve anahtar hatası:

Target 'Pods-scoreosx' of project 'Pods' was rejected as an implicit dependency for 'Pods_scoreosx.framework' because it doesn't contain platform 'macosx' in its SUPPORTED_PLATFORMS 'iphonesimulator, iphoneos' 

herhangi biri yanlış yaptığımı biliyorum?

düzenleme: Güncel Podspec dosyası:

# Uncomment this line to define a global platform for your project 
# platform :ios, '8.0' 

use_frameworks! 

pod 'EmitterKit' 
pod 'SwiftDate' 
pod 'CocoaAsyncSocket' 
pod 'ReactiveKit', '~> 1.0' 
pod 'ReactiveUIKit', '~> 1.0' 
pod 'ReactiveFoundation', '~> 1.0' 
pod 'AsyncSwift' 

target 'score' do 

end 

target 'scoreTests' do 

end 

target 'scoreUITests' do 

end 

target 'scoreosx' do 
    pod 'EmitterKit' 
end 

target 'scoreosxTests' do 

end 

target 'scoreosxUITests' do 

end 
+0

Bize podspec'i gösterir misiniz? –

+0

Elbette - annnnd düzenlenmiş ... – MickCrozier

cevap

1

hata mesajı açıkça hedef için bir platform yapılandırmanız gerekir diyor. Platformun hedefte beyan edilmesine yardımcı olmak yardımcı olacaktır.

target 'scoreosx' do 
    platform :osx 
    pod 'EmitterKit' 
end 
+0

Şerefe! Platform olarak platform: osx' kullanın: osx bir yazım hatası verir. – MickCrozier

+0

Teşekkür ederim ben düzenledim –

İlgili konular