apple / swift-nio-ssl

TLS Support for SwiftNIO, based on BoringSSL.
https://swiftpackageindex.com/apple/swift-nio-ssl/main/documentation/niossl
Apache License 2.0
387 stars 139 forks source link

CFBundleIdentifier '_NIOBase64' and '_NIODataStructures' There are invalid characters #478

Open grassesTop opened 1 week ago

grassesTop commented 1 week ago

Hi Team ,

I archive app and distribute it to testFlight, but upload failed.

Asset validation failed This bundle is invalid. The bundle at path Payload/vive_edu.app/Frameworks/_NIOBase64.framework has an invalid CFBundleIdentifier '_NIOBase64' There are invalid characters(characters that are not dots, hyphen and alphanumerics) that have been replaced with their code point '\u005fNIOBase64' 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] (ID: c87c89fe-65c6-478e-a17b-a6bd49827265)

Asset validation failed This bundle is invalid. The bundle at path Payload/vive_edu.app/Frameworks/_NIODataStructures.framework has an invalid CFBundleIdentifier '_NIODataStructures' There are invalid characters(characters that are not dots, hyphen and alphanumerics) that have been replaced with their code point '\u005fNIODataStructures' 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] (ID: 815c78d5-28cd-44e9-97c2-7aa6de5da017)

Xcode -> 15.2 swift-nio-ssl -> 2.27.2 Apple Swift version -> 5.9.2

What can I do for it?

FranzBusch commented 1 week ago

If I recall correctly this issue was fixed in newer Xcodes. Can you try building and submitting with Xcode 15.3 or 15.4?

grassesTop commented 1 week ago

If I recall correctly this issue was fixed in newer Xcodes. Can you try building and submitting with Xcode 15.3 or 15.4?

I update Xcode to 15.4(15F31d), but it still made the same error.

FranzBusch commented 5 days ago

I misremembered which Xcode is shipping the fix it turns out this is fixed with Xcode 16 and should work in the recent betas.

grassesTop commented 4 days ago

Thanks for your help, I will retry it use Xcode 16. Now, I download swift-nio for local lib, and replace all '_NIOBase64' and '_NIODataStructures' to 'NIOBase64' and 'NIODataStructures', then it pass the apple check.