Skip to content

Could not parse Info.plist file - caused by: Serde("invalid type: integer 32924, expected a string") #1936

Closed

Description

@kenyipp

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.18.0

react-native version: 0.70.13

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

[Link to issue]

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://[email protected]/...'
  // other options
});

I have the following issue:

Since yesterday, I've been encountering the following error message when attempting to build the iOS app:

❌  error: Could not parse Info.plist file
    Run script build phase '[CP-User] Config codegen' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'react-native-config' from project 'Pods')
    Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
Last lines of the Xcode's build log:
    export __IS_NOT_SIMULATOR_simulator\=NO
    export arch\=undefined_arch
    export variant\=normal
    /bin/sh -c /Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Mylo-fcequrikxyqjreaosttkhtfkpnoi/Build/Intermediates.noindex/ArchiveIntermediates/Mylo/IntermediateBuildFilesPath/Mylo.build/Release-iphoneos/Mylo.build/Script-A31ED4BC5358436EB4C1FDEE.sh
  INFO    2024-02-09 00:33:23.878117 +00:00 Loaded file referenced by SENTRY_PROPERTIES (sentry.properties)
error: Could not parse Info.plist file
  caused by: Serde("invalid type: integer `32924`, expected a string")

Steps to reproduce:

  • Step 1
  • Step 2

Actual result:

Encountered an error when trying to build the app.

Expected result:

Successful build of the app without any issues.

Activity

  1. krystofwoldrich commented on Feb 9, 2024

    @krystofwoldrich
    Contributor

    Hi @kenyipp,
    thank you for the message, this is an error from the @sentry/cli failing to parse the Info.plist.

    Would you be able to share an example Info.plist file where parsing fails, that would help us a lot with debugging the issue.

    Related code:

    info!("Parsing Info.plist");
    let plist = match InfoPlist::discover_from_env()? {
    Some(plist) => plist,
    None => bail!("Could not find info.plist"),
    };
    info!("Parse result from Info.plist: {:?}", &plist);

  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Feb 9, 2024
  3. moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 2on Feb 9, 2024
  4. krystofwoldrich commented on Feb 9, 2024

    @krystofwoldrich
    Contributor
  5. kenyipp commented on Feb 9, 2024

    @kenyipp
    Author

    @krystofwoldrich May I have your email so that I can send you my Info.plist? It's a bit urgent since all of the products in my company are using Sentry, and we are unable to release the apps now. Thanks!

  6. moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 2on Feb 9, 2024
  7. szokeasaurusrex commented on Feb 12, 2024

    @szokeasaurusrex
    Member

    @kenyipp You can email me at [email protected].

    But simply based on the error message, do you have any values in your Info.plist that are set to 32924? If possible, changing the type of this value to a string might fix the problem.

  8. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Feb 12, 2024
  9. moved this to Waiting for: Community in GitHub Issues with 👀 2on Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions