Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
cbjerg opened this issue Sep 21, 2021 · 7 comments · Fixed by #1485
Closed
3 tasks done

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

cbjerg opened this issue Sep 21, 2021 · 7 comments · Fixed by #1485
Milestone

Comments

@cbjerg
Copy link

cbjerg commented Sep 21, 2021

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

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@meidlinga
Copy link

Probably same as: havesource/cordova-plugin-push#95

@TripShade
Copy link

We are also experiencing this.

@meidlinga
Copy link

meidlinga commented Feb 10, 2022

@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
Copy link

@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
Copy link

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

@TripShade
Copy link

@meidlinga Works great thx again!

@acgodoi
Copy link

acgodoi commented Apr 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants