ivlevAstef / DITranquillity

Dependency injection for iOS (Swift)
MIT License
421 stars 32 forks source link

I can not build a static library #122

Closed mefilt closed 6 years ago

mefilt commented 6 years ago

Hello. I use cocoapod. I can not build a static library.

2018-05-27 3 10 54
ivlevAstef commented 6 years ago

Thank you for using the library. Yes, I did not check for static compilation using cocoapods.

On Monday I will correct - it is not difficult

mefilt commented 6 years ago

Thx and Спасибо 👍

ivlevAstef commented 6 years ago

fix in version 3.3.6 (and SwiftLazy 1.0.2)

mefilt commented 6 years ago

You need remove Bridging-Header from project.

2018-05-29 0 27 40
ivlevAstef commented 6 years ago

Please send me Podfile, and check the version of cocoapods - it must be greater than 1.4.0.

P.S. I have compiled fine with Simply Podfile:

use_frameworks!

target 'App' do
    pod 'SwiftLazy'
    pod 'DITranquillity'
end
mefilt commented 6 years ago

pod --version 1.5.0

2018-05-29 11 15 22
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target '#######' do
  # # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  # use_frameworks!
  #
  # # Pods for ####

  # Network
  pod 'Moya', '~> 11.0'
  pod 'Moya/RxSwift', '~> 11.0'

  # RX
  pod 'RxSwift'

  # Map
  pod 'YandexMapKit', '~> 3.0.0'

  # DI
  pod 'DITranquillity'

  # Auto Generate Code
  pod 'SwiftGen'
end
ivlevAstef commented 6 years ago

Sorry. This worked for cocoapods 1.4.x. Push version 3.3.7 for cocoapods 1.5.x. Thanks for waiting.