apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 987 forks source link

Pod error on app with scandinavian chacters in the name #1150

Open cbjerg opened 2 years ago

cbjerg commented 2 years ago

Bug Report

Problem

Using @havesource/cordova-plugin-push 2.0.0 in an app with a special character in the name (like æ ø å)results in a linker error. Pods install fine, but Xcode shows a build error: ld: framework not found Pods_Special_L_ringsportal (Project name is Special Læringsportal). All pods are in the correct places, and named correctly in the filesystem

What is expected to happen?

App would build, as it does without adding the @havesource plugin

What does actually happen?

Xcode shows a build error: ld: framework not found Pods_Special_L_ringsportal

Environment, Platform, Device

MacOS: Catalina 10.15.4 Xcode: 12.4 Cordova-ios: 6.2.0 (tried 6.1.0 and 6.0.0 withg same result)

Checklist

meidlinga commented 2 years ago

Probably same as: https://github.com/havesource/cordova-plugin-push/issues/95

TripShade commented 2 years ago

We are also experiencing this.

meidlinga commented 2 years ago

@TripShade , we worked around this issue the following way:

Edit: Added step, I forgot previously

TripShade commented 2 years ago

@TripShade , we worked around this issue the following way:

  • Set the name itself to an alias without special characters (e.g. part of the package name). This wont be visible in the end.

  • Set the short name to the prefered app name containing special characters

Example: <name short="{{= name}}">{{= alias}}</name>

  • Set the Android App label explicitly in the Manifest

<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">

[...]

    <application android:label="{{= name}}" />

</edit-config>

Thx I'll give this a go 😃

meidlinga commented 2 years ago

@TripShade : I added a step i forgot to mention initially

TripShade commented 2 years ago

@meidlinga Works great thx again!

acgodoi commented 2 years ago

@meidlinga Worked for me as well! Great job! Thanks!