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

iOS CodePushServerURL plist doesn't like // #2782

Open
kmcrawford opened this issue Nov 18, 2024 · 0 comments
Open

iOS CodePushServerURL plist doesn't like // #2782

kmcrawford opened this issue Nov 18, 2024 · 0 comments

Comments

@kmcrawford
Copy link

kmcrawford commented Nov 18, 2024

Example:

<key>CodePushServerURL</key>
<string>https://mycode-push.server.com</string>

You get this error: (masked)

error: unable to read property list from file: /Users/****/Library/Developer/Xcode/DerivedData/**_mobile-**/Build/Intermediates.noindex/**_mobile.build/Debug-iphonesimulator/**_mobile.build/Preprocessed-Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 2.) (in target '**_mobile' from project '**_mobile')
If I look at the Preprocessed-Info.plist I see the following:

<key>CodePushServerURL</key>
 <string>https:
 <key>UIViewControllerBasedStatusBarAppearance</key>
 <false/>

The end of the string is missing, I'm not sure it likes the //.

I was able to get around this issue by setting the plist to:

<key>CodePushServerURL</key>
<string>$(CODE_PUSH_SERVER_URL)</string>

Then:

  1. Open Xcode and go to your project’s Build Settings.
  2. Add a new User-Defined Setting. Name it CODE_PUSH_SERVER_URL and set its value t
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

1 participant