Open cbjerg opened 2 years ago
Probably same as: https://github.com/havesource/cordova-plugin-push/issues/95
We are also experiencing this.
@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>
Call cordova-plugin-app-name
npx cordova cordova-plugin-app-name --variable APP_NAME="$NAME" --save
Edit: Added step, I forgot previously
@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 😃
@TripShade : I added a step i forgot to mention initially
@meidlinga Works great thx again!
@meidlinga Worked for me as well! Great job! Thanks!
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