You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/07/04 22:49:57 UTC

[GitHub] [cordova-osx] bpresles opened a new issue #104: Build error when building for Apple Silicon (Universal binary)

bpresles opened a new issue #104:
URL: https://github.com/apache/cordova-osx/issues/104


   # Bug Report
   
   ## Problem
   
   Building Cordova OS X app for Apple Silicon (Universal Binary for both Intel x86_64 and arm64) fails.
   
   ### What is expected to happen?
   
   Build fine.
   
   ### What does actually happen?
   
   The compiler reports an issue with objc_msgSend() calls : "Too many arguments to function call, expected 0, have 3"
   
   Used on the following files:
   
   CordovaLib/Classes/CDVBridge.m line 77 (on latest master code)
   CordovaLib/Classes/Commands/CDVCommandQueue.m line 146 (on latest master code)
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   This is caused by the fact that old prototype were deprecated and are now not supported at all on Apple Silicon Macs.
   
   To solve that issue, either use new prototype with casting:
   
   ```objc
   void* (*msgSend)(id, SEL, CDVInvokedUrlCommand*) = (typeof(msgSend)) &objc_msgSend;
   msgSend(obj, normalSelector, command);
   ```
   Or use 
   
   ```objc
   [obj performSelector:normalSelector withObject:command];
   ```
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   Use Xcode 12 Beta for Universal Apps and build with target "Any Mac (Apple Silicon, Intel)"
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   iMac Intel Core i7 under macOS 10.15.5 Catalina with XCode 12 Beta for Universal Apps.
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova OS X 6.0 with Ionic 1.3.5.
   macOS Catalina 10.15.5
   Xcode 12 Beta for Universal Apps.
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-osx] rchrd2 commented on issue #104: Build error when building for Apple Silicon (Universal binary)

Posted by GitBox <gi...@apache.org>.
rchrd2 commented on issue #104:
URL: https://github.com/apache/cordova-osx/issues/104#issuecomment-729517325


   This fork fixed a compiling issue for me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-osx] NiklasMerz closed issue #104: Build error when building for Apple Silicon (Universal binary)

Posted by GitBox <gi...@apache.org>.
NiklasMerz closed issue #104:
URL: https://github.com/apache/cordova-osx/issues/104


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-osx] fortuna commented on issue #104: Build error when building for Apple Silicon (Universal binary)

Posted by GitBox <gi...@apache.org>.
fortuna commented on issue #104:
URL: https://github.com/apache/cordova-osx/issues/104#issuecomment-921214812


   See also: https://github.com/apache/cordova-osx/issues/112
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-osx] qpwr commented on issue #104: Build error when building for Apple Silicon (Universal binary)

Posted by GitBox <gi...@apache.org>.
qpwr commented on issue #104:
URL: https://github.com/apache/cordova-osx/issues/104#issuecomment-769878897


   Is this ever going to be merged? Is the cordova-osx repository still maintained at all?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-osx] brodybits commented on issue #104: Build error when building for Apple Silicon (Universal binary)

Posted by GitBox <gi...@apache.org>.
brodybits commented on issue #104:
URL: https://github.com/apache/cordova-osx/issues/104#issuecomment-788199408


   I highly recommend that you followup on Slack and on the dev mailing list, please follow links from the footer of cordova.io or cordova.apache.org, and try again if you don't hear anything. Unfortunately the maintainers have been pretty overloaded over the past couple years.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org