JonasGessner / JGProgressHUD

An elegant and simple progress HUD for iOS and tvOS, compatible with Swift and ObjC.
MIT License
3.35k stars 334 forks source link

Can not archive in Xcode9 Swift4 #83

Closed CK11FOR333 closed 6 years ago

CK11FOR333 commented 6 years ago

I created a hud just like guide code. Running in iPhone was find, but when I was archived that Xcode said hud need to add ? or ! . I'm using swift4 and installing by CocoaPods with branch 2.0. What's going on?

By the way, using swift3 in Xcode8 and installing manually with branch 1.4.1 is no problem.

JonasGessner commented 6 years ago

Please show me your code otherwise I can't help you with your problem. But it sounds like you're calling a function on an optional, which is why you get an error saying you need to unwrap the optional (using ! or ?). You can read up on optionals here.