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

Xcode export fails when project name contains an apostrophe and the MobileAdvert object - Cordova too #8135

Open
0nitsoga opened this issue Jul 25, 2024 · 0 comments
Assignees

Comments

@0nitsoga
Copy link

Problem description

  • When exporting to Xcode, it fails when the project name contains an apostrophe.
  • I believe exporting to Cordova project only delays the issue until compiling to Xcode, therefore that cannot be a workaround.
  • I believe the bug is in the MobileAdvert plugin/object. Probably not escaping characters correctly?

Attached .c3p

Steps to reproduce

  1. Name the game project something with an apostrophe like: Test or Don't Test
  2. Add and configure the MobileAdvert object
  3. Export to Xcode

Observed result

Expected result

  • Should provide an Xcode compatible file.

Error Log

View details

Error: Platform 'ios' found in config.xml... Migrating it to package.json
Discovered platform "ios". Adding it to the project
Using cordova-fetch for [email protected]
Adding ios project...
Creating Cordova project for the iOS platform:
Path: ~~/ios
Package: com.test.test
Name: test or don't test
iOS project created with [email protected]
Plugin 'admob-plus-cordova' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-consent' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-device' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-idfa' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-nativestorage' found in config.xml... Migrating it to package.json
Plugin 'construct-mobile-export2' found in config.xml... Migrating it to package.json
Discovered plugin "admob-plus-cordova". Adding it to the project
Installing "admob-plus-cordova" for ios
Discovered plugin "cordova-plugin-consent". Adding it to the project
Installing "cordova-plugin-consent" for ios
Discovered plugin "cordova-plugin-device". Adding it to the project
Installing "cordova-plugin-device" for ios
Discovered plugin "cordova-plugin-idfa". Adding it to the project
Installing "cordova-plugin-idfa" for ios
Discovered plugin "cordova-plugin-nativestorage". Adding it to the project
Installing "cordova-plugin-nativestorage" for ios
Discovered plugin "construct-mobile-export2". Adding it to the project
Installing "construct-mobile-export2" for ios
Running in: linux
Setting swift version
Running manual pod update
Pod update failed
Update all pods
Updating local specs repositories

CocoaPods 1.15.0 is available.
To update use: sudo gem install cocoapods

For more information, see https:/~~/blog.cocoapods.org and the CHANGELOG for this version at https:/~~/1.15.0

Analyzing dependencies
[!] The target test or don't test is declared multiple times for the project test or don't test.xcodeproj.

CordovaError: Promise rejected with non-error: undefined
at ~~/cordova:30:15
at process.processTicksAndRejections (node:~~/task_queues:95:5)

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

No branches or pull requests

2 participants