appsquickly / typhoon

Powerful dependency injection for Objective-C ✨✨ (https://PILGRIM.PH is the pure Swift successor to Typhoon!!)✨✨
https://pilgrim.ph
Apache License 2.0
2.7k stars 269 forks source link

Unable to compile after migrating from 3.5.1 to 4.0.5 #588

Closed AdithyaReddy closed 6 years ago

AdithyaReddy commented 6 years ago
screen shot 2018-07-02 at 1 37 47 pm

I am trying to migrate from 3.5.1 -> 4.0.5 and I get the above error. My codebase is running on Swift3.2. Can someone please have a look at this?

alexgarbarev commented 6 years ago

Hey, that looks strange. Due to lack of free time, can you please replace that on new empty swift3.2 project? If yes - please share it with repo.

AdithyaReddy commented 6 years ago

Thanks for the quick response. Yeah, sure. Will share it in a bit.

But, surprisingly, when I just replaced(downgraded) pod version from "4.0.5" to "3.5.1" in the podfile, it compiled successfully, without a single warning of duplication or error.

Its just not working for any of the "4.0.x" versions

AdithyaReddy commented 6 years ago

@alexgarbarev , please find the sample project below. With Swift3.2 and Typhoon4.0.5.

https://github.com/AdithyaReddy/SampleTyphoonSwift

alexgarbarev commented 6 years ago

Hey @AdithyaReddy, sorry for delay. I've tried your repo and I was able to build both device and simulator builds successfully! My Xcode is Version 9.3.1 (9E501) screen shot 2018-07-09 at 21 22 49

AdithyaReddy commented 6 years ago

Yup, found the issue. I was using import "TyphoonAssembly.h"

Changed it to:- import <Typhoon/TyphoonAssembly.h> and it worked.