tidev / hyperloop.next

Hyperloop Next version (we forgot the version number at this point)
Other
8 stars 5 forks source link

Xcode 15: cannot figure out objc return result #380

Closed m1ga closed 11 months ago

m1ga commented 1 year ago

Issue for some Slack users:

Hyperloop, Xcode 15 (Beta 8 was working)

Error: cannot figure out objc return result
    at Object.getObjCReturnResult (/Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/util.js:626:8)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/block.js:113:31
    at Array.forEach (<anonymous>)
    at Object.generateBlockWrapper (/Users/BatMan/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/block.js:109:19)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:290:39
    at Array.forEach (<anonymous>)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:289:18
    at Array.forEach (<anonymous>)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:282:43
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/node_modules/async/dist/async.js:473:16

Place is: https://github.com/tidev/hyperloop.next/blob/6e9eae76664c4b4f5ab45f6428e4fd5c620cbbab/iphone/hooks/generate/util.js#L626

return value:

{
  encoding: '{?=qiIq}',
  name: 'actualTime',
  type: 'record',
  value: 'CMTime'
}
hansemannn commented 1 year ago

Is there a sample code for this?

m1ga commented 1 year ago

I only created it so it won't get lost. Here are the slack threads where people have the issue:

https://tidev.slack.com/archives/C03CVQX2A/p1695674912584769 https://tidev.slack.com/archives/C0B2EUWRK/p1695733764354989?thread_ts=1694798671.092719&cid=C0B2EUWRK https://tidev.slack.com/archives/C03CVQX2A/p1695094751177669

but it sounds like its during the build process, so no app code yet.

hansemannn commented 1 year ago

Honestly, I have no idea how to fix this. It seems like struct encodings are not properly handled, but I don't know what needs to be changed to do so.

Arood commented 1 year ago

I'm also experiencing this

{
  encoding: '{?=qiIq}',
  name: 'actualTime',
  type: 'record',
  value: 'CMTime'
}
[LiveView] Error: cannot figure out objc return result
    at Object.getObjCReturnResult (/Users/arood/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/util.js:626:8)
    at /Users/arood/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/block.js:113:31
    at Array.forEach (<anonymous>)
    at Object.generateBlockWrapper (/Users/arood/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/block.js:109:19)
    at /Users/arood/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:290:39
    at Array.forEach (<anonymous>)
    at /Users/arood/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:289:18
    at Array.forEach (<anonymous>)
    at /Users/arood/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:282:43
    at /Users/arood/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/node_modules/async/dist/async.js:473:16

There's also a lot of "Not sure how to handle"-lines before this, that I'm not sure if it's related, but it starts with some lines mentioning CMTime so maybe?

Not sure how to handle: name= transform type= record value= simd_float4x4
Not sure how to handle: name= transform type= record value= simd_float4x4
Not sure how to handle: name= BOOL type= unknown type: 119 value= BOOL
Not sure how to handle: name= duration type= record value= CMTime
Not sure how to handle: name= BOOL type= unknown type: 119 value= BOOL
Not sure how to handle: name= duration type= record value= CMTime
Not sure how to handle: name= timestamp type= record value= CMTime
Not sure how to handle: name= timestamp type= record value= CMTime
Not sure how to handle: name= BOOL type= unknown type: 119 value= BOOL
Not sure how to handle: name= duration type= record value= CMTime
Not sure how to handle: name= duration type= record value= CMTime
Not sure how to handle: name= duration type= record value= CMTime
Not sure how to handle: name= duration type= record value= CMTime
Not sure how to handle: name= BOOL type= unknown type: 119 value= BOOL
Not sure how to handle: name= CFTimeInterval type= unknown type: 119 value= CFTimeInterval
...and lots more

If there's anything else I can provide let me know, I'm very inclined to get this fixed so I can get my app starting :)

Arood commented 1 year ago

It seems like importing UIActivityViewController triggers the problem, if you need a way to recreate it.

var UIActivityViewController = require('UIKit/UIActivityViewController');

Astrovic commented 1 year ago

Same error after updating to Xcode 15 using 12.2.0.GA on an Intel Mac. The error appears when I add <module>hyperloop</module> in the tiapp.xml.

johnstan commented 1 year ago

Same with 12.2.1.GA on an Intel Mac

williamycx commented 11 months ago

Having the same issue with SDK 12.2.1.GA and Hyperloop 7.0.5 on an Intel Mac.

Marvbuster commented 11 months ago

Same issue here on 12.2.1.GA, macos 14.1 and xcode 15.0.1

hansemannn commented 11 months ago

Hi everyone! This issue has finally been addressed - you can find the new release here:

https://github.com/tidev/hyperloop.next/releases/tag/v7.0.6

Please note that there is one open, unrelated issue regarding Cocoapods. It may be only on my system, but just in case you are running into it, please report it in a separate issue, so it can be tracked. Thank you!

hansemannn commented 11 months ago

Update: The hyperloop-examples sample app is working fine - the issue was just an outdated Localytics SDK dependency. All up to date now :)

francisco-alvarado-espol commented 11 months ago

Hi! Is it working on Xcode 15.0.1?

mbespol commented 9 months ago

Funcionando en Mac M1 (OS Sonoma 14.2.1) y XCode 15.2, Adicionalmente cuando se intenta lanzar el simulador da el siguiente error: “metabase” no se puede abrir porque no se puede verificar el desarrollador. El cual se soluciona, desde las opciones de "Privacidad y Seguridad", volver a ejecutar y luego al mensaje "Abrir"

mbespol commented 9 months ago

It works on Mac M1 (OS Sonoma 14.2.1) and XCode 15.2, in addition, when trying to start the simulator the following error appears: The “metabase” cannot be opened because the developer cannot be verified. Which is solved, from the “Privacy and Security” options, run again and then the “Open” message appears.