Comments (13)
@kimdv Yep, that's quite clear.
SwiftPM's Xcode integration should not ever generate invalid bundle identifiers -- so the cause is clearly a tooling bug. However, the only way we can resolve this without waiting for a tools update is to rename the module. That takes a little bit of coordination, but it's a straightforward change and it can ship in 1.1.1.
from swift-collections.
Some more info from the CI
2024-02-22T19:51:05.1131850Z ▸ Processing empty-_CollectionsUtilities.plist
2024-02-22T19:51:05.1154810Z invalid character in Bundle Identifier. This string must be a uniform type identifier (UTI) that contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.) characters. (in target '_CollectionsUtilities' from project 'swift-collections')
from swift-collections.
That's not ideal.
- What platform are you targeting?
We have iOS 14 as min target version.
- Can you step me through your build setup? In particular, did you do any custom configuration to have this package be built as a set of standalone frameworks, as opposed to directly linking it into the app executable?
We have added it to our Xcode project under the "Package Dependencies" tab.
In our app target we import "Collections" and in a framework target we import "OrderedCollections".
Does that help you @lorentey ? :D
from swift-collections.
I am running into the same problem. The culprit seems to be the underscore in the CFBundleIdentifier _CollectionUtilities which is put into the generated Info.plist. Underscores are forbidden in these identifiers. This even prevents uploading apps using this to App Store Connect. An upload results in an error.
I am using Xcode 15.3 under macOS 14.4 to build a macOS / iPad app.
from swift-collections.
I am seeing the same warning when doing a debug build. When uploading to App Store Connect, this turns into an error.
from swift-collections.
@kimdv Hmm… is there any utility or tool I could run locally to confirm the bug in a demo app? Have you experimented with any workarounds so far?
We had one place where we imported Collections and one place where use Collections and one place OrderedCollections.
You need to upload an app to the AppStore to get this error.
In our app target we import "Collections" and in a framework target we import "OrderedCollections".
Did you experiment with depending on the entire
Collections
package in the framework target and then just having your app target depend on the framework (which exposesCollections
)? Same problem?
We have one target using Collections, and I will assume it's the same as it imports OrderedCollections.
from swift-collections.
I've also just hit this problem trying to release to the AppStore. Is there any resolution or work around at the moment?
from swift-collections.
I've also just hit this problem trying to release to the AppStore. Is there any resolution or work around at the moment?
I‘ve forked the repository and removed the underscore. This got rid of the build warning and the App Store Connect upload error. You can add the Swift package from the following URL to work around the problem until Apple issues an official fix: https://github.com/projectwizards/swift-collections
from swift-collections.
Wanted to add that we're encountering this same issue
from swift-collections.
That's not ideal.
- What platform are you targeting?
- Can you step me through your build setup? In particular, did you do any custom configuration to have this package be built as a set of standalone frameworks, as opposed to directly linking it into the app executable?
from swift-collections.
We have added it to our Xcode project under the "Package Dependencies" tab.
@kimdv Hmm… is there any utility or tool I could run locally to confirm the bug in a demo app? Have you experimented with any workarounds so far?
In our app target we import "Collections" and in a framework target we import "OrderedCollections".
Did you experiment with depending on the entire Collections
package in the framework target and then just having your app target depend on the framework (which exposes Collections
)? Same problem?
from swift-collections.
I see a warning when I try reproducing this:
Module 'HeapModule' was not compiled with library evolution support; using it means binary compatibility for 'TestFramework' can't be guaranteed
@kimdv do you see this too? Are you doing anything to suppress this warning?
from swift-collections.
#382 has landed on release/1.1; it works around this issue while we are waiting for an Xcode-level fix.
This work is scheduled to be part of the upcoming 1.1.1 release.
from swift-collections.
Related Issues (20)
- OrderedDictionary insert(at:) HOT 1
- OrderedDictionary `updateValue` autoclosure for insertion index
- Failed to resolve dependencies Dependencies could not be resolved because no versions HOT 1
- Ship Sendable annotations in 1.0.6 HOT 1
- `Heap` documentation does not explain what a heap is
- `Heap.insert(contentsOf:)` is quasilinear instead of linear complexity
- OrderedSet `append(contentsOf:)` with insertion check result/results
- OrderedDictionary.values and OrderedSet Performance Problems when SwiftUI.List is paired with SwiftUI.NavigationStack HOT 6
- Ship release 1.0.6 HOT 11
- Ship release 1.1.0 HOT 19
- BitArray's bitwise operations should allow operating on slices HOT 2
- Version 1.1.0 fails to compile HOT 11
- Add Privacy Manifest HOT 7
- Incorrect calculating offset for _BTree.findAnyIndex(forKey: Key)
- [1.1] Randomized test failure on CI
- Please Add Support for Multiset HOT 1
- CMake configuration is broken on case sensitive filesystems HOT 1
- Invalid assert in Deque._ensureUnique HOT 1
- Ship release 1.1.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-collections.