title: App running fine on Simulator, can't build on iPhone
body: <p>I'm building an app in Swift 3 that sends out MQTT commands. The framework I use for this is <code>SwiftMQTT</code>. When I run the app on the iOS Simulator, it builds and runs without any errors. When I try to run it on my iPhone or archive it however, Xcode throws some weird errors. It finds the framework, but doesn't recognize the syntax.</p>
  
  <p>As you can see, I have imported the <strong>framework</strong>:</p>
  
  <p><a href="https://i.stack.imgur.com/wzasR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wzasR.png" alt="enter image description here"></a></p>
  
  <p>These are the <strong>errors</strong> Xcode is throwing:</p>
  
  <p><a href="https://i.stack.imgur.com/mF9jj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mF9jj.png" alt="enter image description here"></a></p>
  
  <p>The framework is normally installed using CocoaPods, but something went wrong when using CocoaPods, throwing 30 errors in the framework itself. <strong>I decided to import it manually</strong>, but it just won't run on a real device..</p>
  
  <p>What could be the cause of this? I sincerely have no clue..</p>
  
  <p>Thanks in advance for any help, it really is appreciated!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/rb2xv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rb2xv.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/7UYsM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7UYsM.png" alt="enter image description here"></a></p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>I was able to fix this issue by updating my CocoaPods repo. I wasn't able to use CocoaPods beforehand because it would default to SwiftMQTT 1.0.0, but now I was able to install the Swift 3 SwiftMQTT 2.0.0 using CocoaPods. </p>