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 2021/05/24 05:48:09 UTC
[GitHub] [cordova-ios] bhandaribhuminpfizer opened a new issue #1113: Macbook M1 : App won't build on simulator but works fine on device
bhandaribhuminpfizer opened a new issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113
## Problem
App won't build on the simulator but works fine on the device
After adding the below setting for a run on the simulator will cause the issue:
```
Xcode -> Target Project -> Build Setting -> Excluded Architectures > "arm64"
Xcode -> Pod Target -> Build Setting -> Excluded Architectures > "arm64"
```
ionic info
```
Ionic:
Ionic CLI : 6.13.1 (/Users/bhuminbhandari/.nvm/versions/node/v10.17.0/lib/node_modules/@ionic/cli)
Ionic Framework : ionic-angular 3.9.10
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 9.0.0, ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 15 other plugins)
Utility:
cordova-res : 0.15.3
native-run : 1.3.0
System:
Android SDK Tools : 26.1.1 (/Users/bhuminbhandari/Library/Android/sdk)
ios-deploy : 1.11.4
NodeJS : v10.17.0 (/Users/bhuminbhandari/.nvm/versions/node/v10.17.0/bin/node)
npm : 6.11.3
OS : macOS Big Sur
```
Xcode v12.5 (12E262)
Xcode Error:
```
Undefined symbol: _CDVPageDidLoadNotification
Undefined symbol: _CDVPluginResetNotification
Undefined symbol: _OBJC_CLASS_$_CDVWebViewProcessPoolFactory
Undefined symbol: _CDVPluginHandleOpenURLNotification
Undefined symbol: _OBJC_METACLASS_$_CDVViewController
Undefined symbol: _OBJC_CLASS_$_CDVPlugin
Undefined symbol: _OBJC_METACLASS_$_CDVPlugin
Undefined symbol: _OBJC_CLASS_$_CDVViewController
Undefined symbol: _OBJC_METACLASS_$_CDVCommandDelegateImpl
Undefined symbol: _OBJC_CLASS_$_CDVPluginResult
Undefined symbol: _OBJC_METACLASS_$_CDVAppDelegate
Undefined symbol: _OBJC_CLASS_$_CDVCommandDelegateImpl
Undefined symbol: _OBJC_CLASS_$_CDVCommandQueue
Undefined symbol: _OBJC_METACLASS_$_CDVCommandQueue
Undefined symbol: _OBJC_CLASS_$_CDVInvokedUrlCommand
Undefined symbol: _OBJC_CLASS_$_CDVAppDelegate
```
![Screenshot 2021-05-24 at 11 17 24 AM](https://user-images.githubusercontent.com/79249987/119302369-a0d44100-bc81-11eb-83bb-769d8a658c45.png)
--
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-ios] chorauoc commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
chorauoc commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-868970639
Same here
--
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-ios] bhandaribhuminpfizer commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
bhandaribhuminpfizer commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-939655835
@NiklasMerz As I mentioned in the previous message` ionic info` I'm using the latest cordova-ios but I think this could be a new Mac M1 processor.
@eddskt I agreed the project works in simulator <= 13.7
--
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-ios] eddskt commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
eddskt commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-930208540
i have the same problem in new apple chip and xcode 13
![image](https://user-images.githubusercontent.com/6931017/135282780-6a193fd5-b3a7-4160-b3b9-7956bfcf70e9.png)
I found that by `cordova run ios` it works instead of running by xcode, it can build, but it probably doesn't load the same classes, because the application is all Visually Unconfigured, down here the difference between the two
built with `cordova run` -------------------------------------------- How it should be:
![ecd182b0-8ee3-4666-a980-be595fcbd506](https://user-images.githubusercontent.com/6931017/135284068-05598d44-1b55-4557-8492-53bda9a41cdd.png)
)
--
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-ios] NiklasMerz commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-939088175
@bhandaribhuminpfizer Why did you change any settings in Xcode. It works fine for me on a new Cordova project. Please make sure you use the latest version of the cordova-ios platform.
--
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-ios] eddskt commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
eddskt commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-930208540
i have the same problem in new apple chip and xcode 13
![image](https://user-images.githubusercontent.com/6931017/135282780-6a193fd5-b3a7-4160-b3b9-7956bfcf70e9.png)
I found that by `cordova run ios` it works instead of running by xcode, it can build, but it probably doesn't load the same classes, because the application is all Visually Unconfigured, down here the difference between the two
built with `cordova run` -------------------------------------------- How it should be:
![ecd182b0-8ee3-4666-a980-be595fcbd506](https://user-images.githubusercontent.com/6931017/135284068-05598d44-1b55-4557-8492-53bda9a41cdd.png)
)
--
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-ios] lalmanzar commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
lalmanzar commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-878279852
I found a workaround, close xcode, and then open it with Rosetta.
--
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-ios] bhandaribhuminpfizer removed a comment on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
bhandaribhuminpfizer removed a comment on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-878145576
Does anyone help?
--
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-ios] sjdrew commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
sjdrew commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-1003147338
Exact same issue on M1 mac. Cordova iOS 6.2.0... Solution.
Running xcode with Rosetta is a workaround. However I did find a solution.
I had already set my xcode targets to Excluded Architecture for "Any iOS Simulator SDK" = arm64
But turns out you also have to add for CordovaLib sub project. Once I added there, the error is gone and simulator works fine from xcode or ionic cordova emulate ...
--
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-ios] bhandaribhuminpfizer commented on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
bhandaribhuminpfizer commented on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-878145576
Does anyone help?
--
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-ios] eddskt edited a comment on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
eddskt edited a comment on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-930208540
i have the same problem in new apple chip and xcode 13 (Configured for open with Rosetta)
![image](https://user-images.githubusercontent.com/6931017/135282780-6a193fd5-b3a7-4160-b3b9-7956bfcf70e9.png)
I found that by `cordova run ios` it works instead of running by xcode, it can build, but it probably doesn't load the same classes, because the application is all Visually Unconfigured, down here the difference between the two
built with `cordova run` -------------------------------------------- How it should be:
![ecd182b0-8ee3-4666-a980-be595fcbd506](https://user-images.githubusercontent.com/6931017/135284068-05598d44-1b55-4557-8492-53bda9a41cdd.png)
)
--
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-ios] eddskt edited a comment on issue #1113: Macbook M1 : App won't build on simulator but works fine on device
Posted by GitBox <gi...@apache.org>.
eddskt edited a comment on issue #1113:
URL: https://github.com/apache/cordova-ios/issues/1113#issuecomment-930208540
i have the same problem in new apple chip and xcode 13 (Configured for open with Rosetta)
![image](https://user-images.githubusercontent.com/6931017/135282780-6a193fd5-b3a7-4160-b3b9-7956bfcf70e9.png)
I found that by `cordova run ios` it works instead of running by xcode, it can build, but it probably doesn't load the same classes, because the application is all Visually Unconfigured, down here the difference between the two
built with `cordova run` -------------------------------------------- How it should be:
![ecd182b0-8ee3-4666-a980-be595fcbd506](https://user-images.githubusercontent.com/6931017/135284068-05598d44-1b55-4557-8492-53bda9a41cdd.png)
)
--
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