missing package product

42,979 results found

Post

Replies

Boosts

Views

Activity

Color asset test not working due to color not being loaded when test conditions are evaluated
I've written a Swift package plugin to add the colours provided in the asset bundles in an extension of the SwiftUI Color type but I'm having difficulties testing this since the bundle and/or colour that is in the asset catalogs are not yet loaded when XCTest goes to evaluate the test conditions. Here is my test code: (colours are just random colours, some derive from macOS colour picker; also, the new static method is functionality that I added and is not present in the existing Color APIs) final class TestCase: XCTestCase { func testBanana() { XCTAssertEqual(Color.banana, Color.new(from: FEFC78)!) } func testAlexsColor() { XCTAssertEqual(Color.alexsColor, Color.new(from: 0432FF)!) } func testMaximumPowerColor() { XCTAssertEqual(Color.maximumPower, Color.new(from: FF2600)!) } func testLongNameColor() { XCTAssertEqual(Color.reallyLongNameThatJustKeepsGoingOnAndOnAndOnAndOn, Color.new(from: AAA000)) } } Here is an example error message that I get when I run the test: testBanana(): XCTAssertEqual faile
4
0
1.6k
May ’23
Reply to How to programmatically use SFTP in a SwiftUI macOS app?
Another option is to use the sftp CLI command via the foundation Process object. I like this option and am considering experimenting with this, but it seems like a hack. How much of a hack this turns into really depends on how you end up needing to interact with the tool If you can structure your interactions with the tool such that you're simply sending the command and getting a result, then it can actually work reasonably well. Indeed, there are a number of command line tools that effectively operate as API and have even been designed to facilitate that functionality (notably, hdiutil and disk image mounting). ssh is another example of this- many applications intentionally use the ssh command line tool instead of integrating with a library because using the command line allows them to rely more on the users existing security configuration instead of having to duplicate that functionality. However, if you'll end up need to drive the tool interactively, that can be pretty painful. Similarly, things like progr
Jun ’24
How to programmatically use SFTP in a SwiftUI macOS app?
Is there an easy way to programmatically use SFTP in my SwiftUI macOS app? In my macOS app I need to do things like: upload local files to a remote server create a directory on a remote server download files from a remote server delete files on a remote server I have been researching this subject for awhile and people are recommending things like SwiftNIO and libssh. But those seem pretty low level and kind of a headache to use. Another option is to use the sftp CLI command via the foundation Process object. I like this option and am considering experimenting with this, but it seems like a hack. Will this work on all macOS computers? Is there an easy way to import and use a C/C++ SFTP library in my SwiftUI macOS app? At this point in my research of this subject I feel like I have to go deep down some rabbit hole in order to pull of some SFTP functionality. But I'm wondering, is there some easy way to do this that I'm missing?
1
0
179
Jun ’24
Reply to Registering login item with new SMAppService API
I have the same trouble. Sometimes I get SMAppServiceStatusNotFound status. I noticed that my macOS app is not in the System Preferences/Login Items/Allow Background apps list. So I did run a terminal command sudo sfltool resetbtm I rebooted, and my app was in that list. I had to turn back off all the apps in the Allow Background list, which turned on since the Terminal command. You would agree with me, this is not the way to distribute the app to the customers. I can't ask my customers to run the Terminal command, reboot then turn off all the unwanted apps from the Allow Background list. I guess I miss something. Any idea? How to get my app in that list just after I copied the app within the /Applications folder?
Jun ’24
Reply to iOS18 beta2: NavigationStack, Views Being Popped Automatically
Thank you for your response. I tried the suggested solution, and although it resolved the issue of the view being popped automatically, a different problem has now arisen. (The new issue: Tapping Back from a lower-level View returns to the Root View / No transition animation ) However, while this fix may work for the simplest code, I think it cannot be applied to our production code for the following three reasons: This fix requires placing navigationDestination directly under NavigationStack. In our production code, we have multiple levels such as two, three, or more, each handling different data models within a large navigation view. It's not practical to describe all levels of navigationDestination directly under NavigationStack. This fix introduces another problem, making it unsuitable for inclusion in our production code at this time. I am unsure whether this behavior is due to a specification change in iOS 18 or a bug in the iOS 18 beta, and whether this solution is just a tem
Jun ’24
Xcode 15.4 - Missing package product "<package name>"
Hello, I'm having this issue that Xcode tells me it cannot find the Swift Packages I'm using within my App. When I first open Xcode, all the Package Dependencies are listed correctly in my project navigator. Also, building the app for the first time runs without any issues. But right after the first build is finished, the Package Dependencies are not listed any more and the build fails, telling me that all the packages are missing. I have to manually click on File -> Packages -> Reset Package Caches, after that it works again. But only for exactly one build. I basically have to do this step for every single build. I found out that there is this Package.resolved file which lists all the used packages with their respective version and some kind of hash. This file is located inside the .xcodeproj file, in my case it's this location: MyApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved This file is deleted after the
2
0
1.1k
May ’24
Stuck with ios18 Beta 1, not releasing storage?
I usually manage very well with my iPhone 15, 128GB but for the first time whats app told me my memory was almost full. I backed up my photos and videos and delete them, old stuff from whats app and clear some space. When I got to see my storage it was full like 70% by system data. I know there is always this problem where system data takes a lot of space. But I have never seen so much. I restarted my iPhone and that made 40GB free. So I went to see if there was some Beta updates and there was, Beta 2. Im trying to update to see if this fix the problem, but every time I try. The system tells me that I don't have enough space for the download. Even when I just saw 40GB free and the download is 6.9GB. If I go back to se my Storage, is full again all the 40GB are gone, until I restart my phone and go through the same process where I see 40GB of space and then the 6.9GB download can't be made and when I go again there is no space. I tried to update it with my computer but my computer don't offer me the Beta 2 opt
1
0
376
Jun ’24
Reply to How to link multiple text views to a single text storage in TextKit 2
Thanks. The part I was missing is the one the documentation for NSTextContentManager doesn't mention, which is that it is an abstract class whose (apparently) only concrete subclass is NSTextContentStorage, which has a textStorage property. guard let textStorage: NSTextStorage = (textLayoutManager?.textContentManager as? NSTextContentStorage)?.textStorage else { return } The sample code also changes the textStorage inside the block passed to textContentManager.performEditingTransaction(_:), which the documentation doesn't seem to explain why it's necessary.
Jun ’24
Reply to iOS 17 - default notification tone
This change is terrible and, as messages show, discriminatory. My hearing is starting to go, which I didn't expect in my 40s, and I work in healthcare and am on call overnights often. I keep missing texts since there's no way to make the phone extra loud and some of my go-to ringtones that were at least a bit longer seem to be gone. Please consider an option to make it louder- even if it's under accessibility.
Jun ’24
"There are errors with one or more of your items" error in new submission system
Yesterday, appstore submission system changed. You can add different type submissions such as App Store Version, In-App Events and Custom Product Pages. My app was previously in Metadata Rejected state. With new build and metadata, I click Add for Review button Then, it redirects me App Review tab. I click Submit to App Review button and I get this error: There are errors with one or more of your items. To fix them, you need to remove the items and add them again to your submission. But, there are no errors showing. I just see metadata rejected message. I've been adding and removing submission again and again hoping it would work but no avail. Anyone managed to resolve this issue? Thanks!
6
0
2.9k
Oct ’21
Xcode 15.3 simulator error (The request was denied by service delegate (SBMainWorkspace))
Hi, I'm a total beginner in programmation. I'm learning Unreal Engine by developing an iPhone game with the engine. I do not own an Apple Developper Subscription, so for testing my game on a real iPhone and/or on a simulator, I use the quick launch option in Unreal. Then, I open the Xcode Project created by the engine while attempting to quick launch directly on the device, and run the app from Xcode. Running it on my personal iPhone failed, so while trying to figure out why I've decided to try running it on the iOS simulator, and it failed. I got this message : Details : Simulator device failed to launch com.***.***. Domain: FBSOpenApplicationServiceErrorDomain Code: 1 Failure Reason: The request was denied by service delegate (SBMainWorkspace). User Info: { BSErrorCodeDescription = RequestDenied; DVTErrorCreationDateKey = 2024-04-14 15:25:10 +0000; FBSOpenApplicationRequestID = 0x8a2a; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; SimCallingSelector = launchApplicationWithID:options:pid:e
1
0
1.1k
Apr ’24
Release app to production with Xcode 16 beta and MacOS 15 beta
I've updated my mac to Sequoia (MacOS 15) beta, my iPhone to iOS 18 beta, and Xcode to Xcode 16 beta. Only then, I realized I couldn't publish app updates with Xcode beta (error in AppStore Connect). I tried using the non-beta Xcode version but got Invalid Binary during app review: ITMS-90111: Unsupported SDK or Xcode version - App submissions must use the latest Xcode and SDK Release Candidates (RC). For details on currently supported versions, visit: https://developer.apple.com/news/releases. I really need to publish updates and I can't wait for September. I can't downgrade my devices because that would require me to erase both my Mac and my iPhone (for testing), which is not something I can do. Is there any option I didn't think about? How can I publish app updates in the current situation? It really should be more explicit before updating that you can't release updates with the beta versions...
4
0
615
Jun ’24
Can't receive App Store Server Test Notification
I have setup my https server to receive App Store Server Notification. But I can not receive the test notification. The following is what I did and checked: Running my https server (It's a simple https server build with python) on port 11234. The server url is https://recorderplus.com:11234 Setup the sandbox server url in App Store Connect: https://recorderplus.com:11234 Use App Store Server Library(python) to request a test notification, And get a response: SendTestNotificationResponse(testNotificationToken='f6ea15ca-0f4f-4233-8ae6-6ecc8a7ab43c_1719371691827') But my https server did not receive the test notification. To make sure my https server works fine. In browser(firefox) I input https://recorderplus.com:11234, the browser can get the result page from https server. My https server also support Post command, I run the command curl -X POST -d test https://recorderplus.com:11234, my https server can get the post and print it. Did I miss anything? Is there anything I should do or check to make my
2
0
171
Jun ’24