一个项目是用Objective-C语言创建的,后来我在其中使用了Swift . 在我的pod文件中,我有几个Objective-C pod . 我尝试使用RxSwift pod,它没有't allow me to have Swift pods and moreover I can' t使用 use_frameworks!
因为我有Objective-C pod .
`target'MyProject'做平台:ios,'8.0'#use_frameworks!
荚'STPopup'荚'AFNetworking','~> 3.1.0'荚'Reachability'荚'SVProgressHUD'荚'CCHMapClusterController'荚'SDWebImage','~> 3.8.2'荚'DateTools'荚'Fabric'荚'TwitterKit'荚'Crashlytics'荚'SpinKit','~> 1.1'荚'GPUImage'荚'LLSimpleCamera','~> 5.0'荚'MGSwipeTableCell'荚'JSONModel'荚'ASIHTTPRequest'荚'PEPhotoCropEditor',:GIT中=>'https://github.com/luyzdeleon/PEPhotoCropEditor ' pod ' RSKImageCropper ', :git => ' https://github.com/luyzdeleon/RSKImageCropper ' pod ' MXParallaxHeader ' pod '吐司', '〜> 3.0 ' pod ' TransformerKit ' pod ' FBSDKLoginKit ' pod ' FBSDKCoreKit ' pod ' FBSDKShareKit ' pod ' FRHyperLabel ', '〜> 1.0.1 ' pod ' STTweetLabel ', :git => ' https://github.com/pabelnl/STTweetLabel.git ', :branch => '主' pod ' STTwitter ' pod ' YSTutorialViewController ' pod ' CTAssetsPickerController ', :git => ' https://github.com/pabelnl/CTAssetsPickerController ', :branch => '主' pod ' RDHCollectionViewGridLayout ', '〜> 1.2 ' pod ' AFNetworking RetryPolicy ' pod ' AWSMobileAnalytics ', '~> 2.4 ' pod ' CHTCollectionViewWaterfallLayout ' pod ' BBBadgeBarButtonItem 150831 7 FMDB ' pod ' APAddressBook ' pod ' CTVideoPlayerView ' pod ' IBProgressButton ' pod ' VIMVideoPlayer ', :git => ' https://github.com/pabelnl/VIMVideoPlayer ', :branch => '主' pod ' ICGVideoTrimmer ' pod ' CRGradientNavigationBar ', :git => ' https://github.com/luyzdeleon/CRGradientNavigationBar ', :branch => '主' pod ' KILabel ', '〜> 1.0.1 ' pod '火力地堡/验证' pod ' GoogleSignIn ' pod ' SwiftTryCatch ' pod ' libPhoneNumber-IOS ', '〜> 0.8 ' pod ' IGListKit ' pod ' SDWebImage -CircularProgressView ' pod ' RxSwift'end`
- Error i am getting with out use_frameworks!:
[!]用Swift编写的Pod只能作为框架集成;将 use_frameworks!
添加到您的Podfile或目标以选择使用它 . 正在使用的Swift Pod是:RxSwift
- Error with use_frameworks!:
[!]无法将以下嵌入式目标与其各自的主机目标集成(主机目标是嵌入“子”目标的“父”目标,如框架或扩展):
- MyProject(true)和share(false)都没有设置use_frameworks! .
1 回答
即使您有Objective-C pod,也可以使用
use_frameworks!
.