ios - Error running pod install with swift -
i new swfit , cocoapods. followed instruction cocoapods
below podfile:
platform :ios, '8.2' pod 'swiftyjson', '~> 2.1' pod 'swiftspinner', '~> 0.6' pod 'alamofire', '~> 1.1' pod 'superrecord', '~> 1.2' pod 'toucan
when did pod install got following error:
pods written in swift can integrated frameworks; feature still in beta. add `use_frameworks!` podfile or target opt using it.
please ?
updated:
below console log:
$ 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 integrated frameworks; feature still in beta. add `use_frameworks!` podfile or target opt using it.
add "use_frameworks!" podfile because:
because apple doesn't let build static libraries contain swift. unlike objective-c, apple doesn't ship swift standard runtime libraries ios. decouples language version platform version. when build app swift, you're responsible ship them. default, xcode uses swift-stdlib-tool handle copying swift runtime dylibs, tooling falls short when attempting ship frameworks use swift app objective-c only. app executable , frameworks ship use same set of dylibs, embedded frameworks subdirectory of application bundle.
first, that's because can't link against different versions of standard libraries. furthermore desirable embed them once , not multiple times, because of constraints memory size , network speed, relevant distribution. can make cocoapods integrate project via frameworks instead of static libraries specifying use_frameworks!. if that's not present, won't able integrate dependencies, if depend on pod includes swift source code.
reference: http://blog.cocoapods.org/cocoapods-0.36/
Comments
Post a Comment