There is/was a bug in Swift 3 language that wrongly links module libraries github pull request, that is fixed now, but the fix is not yet implemented in XCode, not even in beta.
You could get latest swift toolchain build from link and install it to XCode to try and see the fix, but the app would not be approved for Appstore as it's stated here

You got two solutions;
- wait for apple to release XCode with new version of swift 3.0.2+
- or revert your code back to swift 2, where it works, with "Use Legacy Swift Language Version" flag in Build Settings

If you choose to revert back to swift 2, brace yourself with a lot of patience :D