[TIMOB-27824] Hyperloop: iOS - build fails after updating XCode to 11.4
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-04-15T20:53:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.0.1, Hyperloop 5.0.3 |
Components | Hyperloop |
Labels | n/a |
Reporter | Jorge Macias Garcia |
Assignee | Jan Vennemann |
Created | 2020-03-25T16:51:48.000+0000 |
Updated | 2020-04-15T20:53:25.000+0000 |
Description
XCode has been automatically updated to 11.4 and now I can't build for iOS (8.3.1 SDK) I got a weird message when build without liveview after tried building with liveview enabled.
Tried with 8.1.3 & 9.0.0 SDK and Hyperloop different versions
{ encoding: '?',
name: 'position',
type: 'unknown type: 176',
value: 'float __attribute__((ext_vector_type(3)))' }
[LiveView] Error: cannot figure out objc return result
at Object.getObjCReturnResult (/Users/jormagar/Library/Application Support/Titanium/modules/iphone/hyperloop/4.0.4/hooks/generate/util.js:597:8)
{ encoding: '?',
name: 'position',
type: 'unknown type: 176',
value: 'float __attribute__((ext_vector_type(3)))' }
[LiveView] Error: cannot figure out objc return result
at Object.getObjCReturnResult (/Users/jormagar/Library/Application Support/Titanium/modules/iphone/hyperloop/5.0.1/hooks/generate/util.js:597:8
[~jormagar] are you seeing this both with and without liveview? The liveview error is probably a red herring due to TIMOB-26870 cc [~jvennemann] I'm guessing something has changed in xcode that broke hyperloop
@eharris if I build with liveview enabled it fails and consecutive builds fails to with same error if I build without liveview. What can I try in this scenario?
Looks like the metadata parser can't figure out the type from something new in the bundled iOS 13.4 SDK. I'll take a look first thing in the morning.
PR: https://github.com/appcelerator/hyperloop.next/pull/337
Same here. Took me 2 days to work this around on my environment, since I'm trapped in SDK 8.2.1.GA due to some incompatible modules with SDK 9. Managed to get it working by uninstalling and cleaning all xcode/node/appc related content, then reinstalling xcode 11.3, node@12, cli 8.0.0. Also, hyperloop must be 4.0.2 or lower.
[~perdona], it should be enough to replace your Xcode install with 11.3. Here are the steps i did to get my environment running again:
Move Xcode 11.4 out of the Applications folder somewhere else, e.g.
sudo mv /Applications/Xcode.app ~/xcode-versions/Xcode_11.4.app
. I keep multiple Xcode versions around in that folder so i can easily switch between them.Install/restore Xcode 11.3 into
That way I was able to build again with Xcode 11.3 / SDK 8.3.1.GA / Hyperloop 4.0.4/Applications
, open it at least once and make sure the command line tools are correctly set. See Preferences > Locations > Command Line Tools.FR Passed. PR Merged.
Verified the fix with hyperloop 5.0.2. Closing.
Need to incorporate into SDK by updating modules.json to point at hyperloop 5.0.3. Here's the release page: https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v5.0.3
PRs to update Hyperloop in the SDK: PR (master): https://github.com/appcelerator/titanium_mobile/pull/11611 PR (9_0_X): https://github.com/appcelerator/titanium_mobile/pull/11612
FR Passed for Master and 9_0_X, waiting on Jenkins build.
merged to master and 9_0_X
Verified the fix with SDK 9.0.1.v20200415071927. Closing.