Post

Replies

Boosts

Views

Activity

xcodebuild returns "Error: No such module"
We have a Mac app that uses several private GitHub hosted Swift Package Manager packages. The app builds file from within Xcode 13.4 whether the builds are Debug (Run) or Release (Archive). However, when built via xcodebuild in Terminal, we get Error: No such module [our package] on an import [our package] statement in a Swift source file. I've tried many variants of the xcodebuild archive command, but nothing seems to fix the issue. We have two other nearly identical projects that work fine with the packages and build scripts. The command looks like: xcodebuild \ -sdk macosx -target "$target" \ -scheme "$scheme" \ -archivePath "$archivePath" \ -destination "generic/platform=macOS" \ archive or xcodebuild \ -scheme "$scheme" \ -archivePath "$archivePath" \ -destination "generic/platform=macOS" \ archive Again, the app builds fine from within Xcode 100% of the time. I'm sure we're using the latest tools: xcodebuild -version returns "Xcode 13.4 Build version 13F17a" I suspect this either has something to do with the Swift packages all referencing a shared package [our package], but I checked the project and Package.swift files and they all use exactly the same name, urls, and capitalization, and the dependencies seem ok, or perhaps it's because we use Schemes to build the apps in three different flavors - dev, qa, and production - all with unique bundleIDs? We're using branch-based .package dependencies if that matters: .package(name: "OurPackage", url: "https://github.com/account/OurPackage", Package.Dependency.Requirement.branch("main")), I'd appreciate any suggestions on how to debug/resolve this. I've tried creating a smaller reproducible demo project but of course they all work fine. Edit: Per a suggestion on iOS-developers, I ran xcodebuild -resolvePackageDependencies and all of the packages downloaded just fine. No errors.
3
2
5.6k
Jun ’22
http 500 errors with notarytool today?
Is anyone else getting errors from notarytool today? I'm getting http 500 errors: xcrun notarytool history --keychain-profile "MY_NOTARY_CREDENTIALS" Error: HTTP status code: 500. Internal server error. Error communicating with authentication service. Please try again at a later time. Apple's web page says that all services are working.
8
0
2.8k
Jan ’22
Push Notification alert sound on macOS apps
Do macOS apps support custom notification sounds like iOS apps? I'm sending a push notification with a custom sound to a macOS app but all I get is the system sound. I tried caf, aiff, and m4a files and I know the caf is good because it works in an old iOS app I wrote. The push payload looks like: {"aps":{"alert":"test", "sound":"PushSound.caf"}} The only difference I see compared to iOS is that the sound is stored in Contents/Resources automatically by Xcode in the macOS app rather than at the top level of the bundle in iOS apps. I tried partial paths in the sound name but they didn't help. Suggestions?
0
0
1.3k
Nov ’21