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

App Store Connect upload failure with ERROR: Asset validation failed (90049) This bundle is invalid. (_Datadog_Private) #1303

Closed
alexfanatics opened this issue Jun 6, 2023 · 5 comments · Fixed by cleevio/Forestry#6
Assignees
Labels
bug Something isn't working compilation issue SDK doesn't compile or gives warnings.

Comments

@alexfanatics
Copy link
Contributor

Greetings!

I'm using DataDog version 1.20.0 with Swift PM .

When archiving our app and delivering to App Store Connect via fastlane pilot, our upload completes before being rejected for the following reason:

ERROR: Asset validation failed (90049) This bundle is invalid. The bundle at path Payload/my-app-name.app/Frameworks/_Datadog_Private.framework has an invalid CFBundleIdentifier '_Datadog_Private' There are invalid characters(characters that are not dots, hyphen and alphanumerics) that have been replaced with their code point '\u005fDatadog\u005fPrivate' CFBundleIdentifier must be present, must contain only alphanumerics, dots, hyphens and must not end with a dot. [see the Core Foundation Keys at https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-102070-TPXREF105]

After inspecting the ipa, it does seem to be an invalid CFBundleIdentifier based on the apple documentation the ITMS error specified at that path (Payload/my-app-name.app/Frameworks/_Datadog_Private.framework/Info.plist):
Screenshot 2023-06-06 at 2 30 03 PM

It seems like the Firebase SDK faced a similar issue about 1 year ago, and they renamed their targets to not include underscores.

Is anyone else seeing this when they upload their app to ASC?

@alexfanatics
Copy link
Contributor Author

As a test, I forked this repo and renamed all occurrences of _Datadog_Private to DatadogPrivate, and my app was accepted by ASC without and validation issues. I can open a PR if the team thinks this is the right path forward.

alexfanatics@7b32c42

@maxep maxep self-assigned this Jun 7, 2023
@maxep
Copy link
Member

maxep commented Jun 7, 2023

Hey @alexfanatics! Thank you very much for the report and for trying with your fork 👍

_Datadog_Private has been there for a while and it's the first report we've got, so there might be something specific with the project config that triggered this. I have a couple of questions to clarify the context:

  • Is it the first time you submit your application with the Datadog SDK?
  • What SPM library do you link to your project? Datadog, DatadogStatic, or DatadogDynamic?

That being said, it's definitely something to address on our side, and renaming the target looks reasonable.

@maxep maxep added bug Something isn't working compilation issue SDK doesn't compile or gives warnings. labels Jun 7, 2023
@alexfanatics
Copy link
Contributor Author

alexfanatics commented Jun 7, 2023

👋 Thanks for the quick response @maxep !

Is it the first time you submit your application with the Datadog SDK?

No, we've had Datadog integrated for quite some time. We haven't seen this response from ITMS until last Friday.

What SPM library do you link to your project? Datadog, DatadogStatic, or DatadogDynamic?

We link Datadog through SPM directly to the app target.

Our project's simplified xcodegen configuration is as follows:

name: my-app-name
targets:
  my-app-target:
    type: application
    platform: iOS
    deploymentTarget: 15.0
    info:
      ...
    sources: 
      ...
    settings:
      base:
        ENABLE_BITCODE: NO
        ENABLE_ON_DEMAND_RESOURCES: YES
        SUPPORTED_PLATFORMS: iphoneos iphonesimulator
        SUPPORTS_MACCATALYST: NO
        SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: NO
        SWIFT_EMIT_LOC_STRINGS: YES
        TARGETED_DEVICE_FAMILY: 1
        VERSIONING_SYSTEM: apple-generic
        ONLY_ACTIVE_ARCH: true
    dependencies:
      - package: Datadog
packages:
  Datadog:
    url: https://github.com/DataDog/dd-sdk-ios
    version: 1.20.0

@maxep
Copy link
Member

maxep commented Jun 9, 2023

Thank you, @alexfanatics, all clear 👍
We will address this issue on our side, I will keep you posted.

@maxep
Copy link
Member

maxep commented Jun 28, 2023

Hey @alexfanatics 👋

The changes from your fork were merged and it was released in 1.21.0.
Thank you for your help, very much appreciated 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compilation issue SDK doesn't compile or gives warnings.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants