Steps to reproduce:
Import the sample application.
Run the application
Actual iOS 10
{noformat}
[TRACE] : "Use Legacy Swift Language Version" (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax...] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
[ERROR] : Error details: "Use Legacy Swift Language Version" (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax...] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
{noformat}
Actual iOS 9.3
{noformat}
[ERROR] : An error occurred during build after 3s 167ms
[ERROR] : the xcodebuild failed running from /Users/Josh/Documents/Appcelerator_Studio_Workspace/hyperloop-examples/Pods
{noformat}
Expected
No error is shown and the application is built.
To solve this specific issue, you just have to add this in appc.js:
And the hyperloop examples will build correctly. HOWEVER, every example here is returning a
... is not a function
. Mostly likely related to TIMOB-23812.environment
Xcode 8 beta 6 titanium SDK latest master appc cli 5.5.0-5 appc npm 4.2.7Talked with [~jvennemann] about this. We agreed that adding it automatically by the Hyperloop-CLI is the best way to solve this on the long-term perspective. Since we are already able to detect whether swift-sources are used in the project, we can hook it in there. Re-assigning to Jan.
Scheduling for Hyperloop 2.0.0 in the 6.0.0 timeframe. Shouldn't be too hard to detect swift-usage and adding the flag then.
Proof of concept: https://github.com/hansemannn/hyperloop.next/commit/4c09f3d081e68902dea55583558de10bc27b4511 However, although I am able to inject the currently selected Swift version with
xcrun swift -version
and inject it into the pbx build-settings, it seems to be injected too late, so the error is still thrown. The value from the appc.js is already injected inhookXcodebuild
so we might need to detect the swift-usage there already. I hope that helps for the correct PR.Took your approach and resolved the async issues that were causing errors ;) PR (master): https://github.com/appcelerator/hyperloop.next/pull/81 Does this need a 1_2_X backport?
[~jvennemann] yes please. Do a 1.2.9 please.
Putting the review on hold, since this issue is blocked by TIMOB-23971.
PR merged. [~jvennemann] Please do a 1.2.9 backport.
PR for the 1_2_X branch: https://github.com/appcelerator/hyperloop.next/pull/84
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.