Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230097

Ionic Error: Apple Mach-O Linker Error

$
0
0

This is what I did:

> ionic cordova plugin remove cordova-plugin-console

cordova plugin remove cordova-plugin-console --save
✖ Running command - failed!
[ERROR] An error occurred while running cordova plugin remove cordova-plugin-console --save (exit code 1):

Error: Plugin "cordova-plugin-console" is not present in the project. See `cordova plugin list`.

Wierd, the cordova-plugin-console is present in the package.json and the config.xml, but ok. Lets try to add it first, so I did:

> ionic cordova plugin add cordova-plugin-console

cordova plugin add cordova-plugin-console --save
✔ Running command - done!
Adding cordova-plugin-console to package.json
Saved plugin info for "cordova-plugin-console" to config.xml

Then I tried to remove it:

> ionic cordova plugin remove cordova-plugin-console

cordova plugin remove cordova-plugin-console --save
✔ Running command - done!
Removing "cordova-plugin-console"
Removing plugin cordova-plugin-console from config.xml file...
Removing cordova-plugin-console from package.json

Ok, that worked, no build it.

> ionic cordova build ios

[INFO] Running app-scripts build: --platform ios --target cordova
[12:57:50]  build dev started ...
[12:57:50]  clean started ...
[12:57:50]  clean finished in 4 ms
[12:57:50]  copy started ...
[12:57:50]  transpile started ...
[12:57:53]  transpile finished in 2.49 s
[12:57:53]  preprocess started ...
[12:57:53]  deeplinks started ...
[12:57:53]  deeplinks finished in 120 ms
[12:57:53]  preprocess finished in 121 ms
[12:57:53]  webpack started ...
[12:57:53]  copy finished in 2.75 s
[12:58:01]  webpack finished in 8.09 s
[12:58:01]  sass started ...
[12:58:02]  sass finished in 794 ms
[12:58:02]  postprocess started ...
[12:58:02]  removed unused font files
[12:58:02]  postprocess finished in 5 ms
[12:58:02]  lint started ...
[12:58:02]  build dev finished in 11.54 s
> ionic cordova prepare
> cordova prepare
⠴ Running command [12:58:56]  lint finished in 54.45 s
✔ Running command - done!
> cordova build ios
✔ Running command - done!
...........
** BUILD SUCCEEDED **

:smiley: That worked! :+1: Thanks for your help @Sujan12!

But now the plugin is also removed for Android, can that cause any problems for my Android app? Are you sure I don’t need the cordova-plugin-console plugin? And what is the difference with the iOS engine 4.4 and 4.5?


Viewing all articles
Browse latest Browse all 230097

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>