I recently compiled my macOS App with Swift 6 in Xcode 16 (was using Swift 5 previously) and noticed that AppKit Integration doesn't appear to be working as before. All my instances of NSHostingView which allow me to add a SwiftUI View to an AppKit NSWindow view controller no longer respond to mouse input anymore. All my NSHostingView instances display but refuse to accept any user interaction. Has anyone else noticed this and is there a workaround to get NSHostingView to once again be able to accept user/mouse events with Swift 6?
Dive into the vast array of tools, services, and support available to developers.
Post
Replies
Boosts
Views
Activity
I'm creating a build to use in UI automation with the following xcodebuild command:
xcodebuild -scheme Test-QA \
-project $GITHUB_WORKSPACE/iosApp/Test.xcodeproj \
-sdk iphonesimulator \
-configuration ‘Debug QA’ \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
-derivedDataPath “/Users/test/build” \
clean build
Installed the app using 'xcrun simctl install booted /path/appfile.app'
Works fine on the original runners simulator and some other machines. However, when I try to run the .app file on the testing machine's simulator, it returns the following error:
xcrun simctl launch booted com.test.app.qa
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
Simulator device failed to launch com.test.app.qa.
The request was denied by service delegate (SBMainWorkspace).
Underlying error (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.test.app.qa" failed.
The request was denied by service delegate (SBMainWorkspace).
Console log :
Bootstrapping failed for <FBApplicationProcess: 0x103f9ca40; app<com.test.app.qa((null))>:<invalid>> with error: <NSError: 0x600000d22010; domain: RBSRequestErrorDomain; code: 5; "Launch failed."> {
NSUnderlyingError = <NSError: 0x600000d20600; domain: NSPOSIXErrorDomain; code: 1> {
NSLocalizedDescription = Launchd job spawn failed;
};
}
Additional Details: Both machines are running the same version of Xcode 15.4 and arm64. The simulator was reset to ensure a clean state. The same error persists even after rebooting the machines. Ensured that the bundle identifier is correct. Both devices have Rosetta installed.
What could be causing this error?
Recently our app went through a series of Mobile App Penetration Test (MAPT), and was flagged with bypassed SSL Pinning (https://cwe.mitre.org/data/definitions/693.html).
The tester is using Frida and is able to attach to SSL_CTX_set_custom_verify() from libboringssl.dylib, as shown in this script (https://codeshare.frida.re/@federicodotta/ios13-pinning-bypass/).
As per my research, though I'm not absolutely sure, I see that boringSSL was added since iOS 11 (https://developer.apple.com/forums/thread/88387) and (https://github.com/firebase/firebase-ios-sdk/issues/314).
I would like to check if there is anyway around this, as I am using TrustKit (https://cocoapods.org/pods/TrustKit), and I realised many other pods also tag on SSL_CTX_set_custom_verify() for SSL Pinning.
As our app requires SSL Pinning, and a resolution to this issue, I would like to ask if there is any solution, whether it being a recommended pod/library, or a native solution (preferred) to do SSL Certificate Pinning.
Thank you.
im having trouble installing truffle. ive tried root/Administrator but then i get this. if anyone has any guidance that would greatly be appreciated.
this is what im getting.
% npm install -g truffle
npm error code EACCES
npm error syscall mkdir
npm error path /usr/local/lib/node_modules/truffle
npm error errno -13
npm error Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/truffle'
npm error at async mkdir (node:internal/fs/promises:858:10)
npm error at async /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:624:20
npm error at async Promise.allSettled (index 0)
npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)
npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)
npm error at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) {
npm error errno: -13,
npm error code: 'EACCES',
npm error syscall: 'mkdir',
npm error path: '/usr/local/lib/node_modules/truffle'
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm error A complete log of this run can be found in: /Users/prestonlofton/.npm/_logs/2024-07-10T00_46_51_500Z-debug-0.log
prestonlofton@Prestons-Air ~ % sudo rm -rf /Library/Developer/CommandLineTools
Password:
Sorry, try again.
Password:
prestonlofton@Prestons-Air ~ % sudo Xcode-select --install
xcode-select: note: install requested for command line developer tools
prestonlofton@Prestons-Air ~ % npm install -g truffle 5.0.2
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/5.0.2 - Not found
npm error 404
npm error 404 '5.0.2@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /Users/prestonlofton/.npm/_logs/2024-07-10T00_54_22_459Z-debug-0.log
Hey everyone, does anybody know how to open the customize menu in iOS 18 beta 3 simulator? This button seems dead.
I've tried, but none of this has had any effect.
Restart simulator and Xcode
Restart MacBook (M2 chip)
Erase simulator
Remove simulator and create a new one
https://drive.google.com/file/d/1XZ0bMvmuTEPPBYznq03MmsnwPL75kzIV/view?usp=sharing
Hello,
Do Apple root certificates AppleRootCA-G2.cer and AppleRootCA-G3.cer expire?
if yes, in how long?
thanks in advance.
Today I installed Xcode 16 Beta 3. I have the watchOS 11 simulator installed on my Mac. When building my watch app with Xcode Beta 3 I am getting the following error.
/Applications/Xcode-16-beta-3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub.xcassets: No simulator runtime version from [<DVTBuildVersion 21F79>] available to use with iphonesimulator SDK version <DVTBuildVersion 22A5307d>
I have no idea what those assets are for but they aren't part of my project.
I tried generating a new standalone watch app project using Xcode 16 Beta 3 and I am getting the same error message so this isn't something particular to my original watch project.
Any help on how to fix this issue is appreciated.
I have two remote Swift Packages (call them A & B). B depends on A, and package B is declared as a dependency in the app project.
I have set up Xcode Cloud for this project so that it builds an archive when there is a change to the main branch. This works fine.
I also want to set up Xcode Cloud workflows to run tests when there are changes to either the repos of A or B. Both Bitbucket repositories of A and B are listed as primary repositories for the project (in the Xcode Cloud tab) and both have been granted access.
So far I've only gotten this working for package B, where the condition is a pull request against the main branch. So this works fine too. However, for package A, Xcode Cloud is not picking up any pull requests, so it's not triggering the action for the workflow.
The problem I see is that when I look at the repository settings on Bitbucket, there is no "https://appstoreconnect.apple.com/ci/webhook/bitbucket" webhook in A's repository. There is one for the repository for B and the project. Why not for A?
Has anyone run into this issue, or know how to fix it? The webhook URL contains an ID that must be provided by Apple when configuring the repos or the Xcode Cloud workflows, so I don't think there's anything I can do manually.
Any help would be appreciated!
I'm a contractor. Not an app store/Mac expert. A few years ago I connected my Apple account to a team I was working with. They set me up as the Account Holder for their team. I forgot all about that, and today I want to set up a new team for another contract, so I reactivated my Developer account.
I find I'm still the Account Holder for that old project, and I don't see how to create a new Team and switch to it. (I did send a request for someone to take over the old team, but who knows when they'll get to that, if ever.)
All I need is to create a couple of signing certs, but not for the old team.
Hi there,
I successfully created an AppIntent for our app, and when I had it in the same target as our main app it showed up fine in the shortcuts app.
Then I realized that many of the new System Control widgets introduced in iOS 18 (e.g. lockscreen, control center) live in the widget extension target, but they also need to reference that same AppIntent. So to fix this, I thought I'd migrate out the code into it's own SPM package that both the WidgetExtension and the Main App processes can reference. However, after doing that and rebuilding, the intent no longer shows up in the Shortcuts app. Furthermore, my AppShortcutsProvider class now has this error when trying to define the list of appShortcuts:
App Intent <name> should be in the same target as AppShortcutsProvider
Is this intended, and if so, how do we reference the same AppIntent across multiple targets?
Ever since I installed iOS 18 beta my phone says it’s not in a new location even though I’m at home.. has anybody run across this problem?
Is it possible to have device bound passkeys on ios and iPadOS?
Our Ionic App running on iOS 17.5.1, crashed.
Attaching the crash report
crash report 1.txt
I've been trying to create a new app for an hour but it always reply like
"An error has occurred. Try again later."
Am I the only one who is getting this error message? Please let me know.
Hi,
I am getting following error from following command, although I am 100% sure that I am entering the right credentials:
Command:
xcrun notarytool store-credentials "MY_PROFILE" --apple-id “***” --team-id "yyy" --password "zzz"
Error:
Error: HTTP status code: 401. Invalid credentials. Username or password is incorrect. Use the app-specific password generated at appleid.apple.com. Ensure that all authentication arguments are correct.
***->https://appleid.apple.com/account/manage/email and phone number -> apple id email (email address used for developer account)
yyy->https://developer.apple.com/account#MembershipDetailsCard/Team ID -> 10 digit nummer
zzz->https://appleid.apple.com/account/manage/App-Specific Passwords created and used
I just copy pasted every single item from the defined locations above.
I would appreciate for an answer.
Best Regards
Hello,
I am trying for a few days to get daily reports for a specific app_id but it seems the process is not working. I manage to get a list of my apps, then of my current reports, but when I try to request a https://api.appstoreconnect.apple.com/v1/analyticsReportInstances/{id} from the report list I am returning above I get a 404. I was wondering if you have any actual guide on how to get daily reports updated from the api for a specific type (downloads or installs for example)?
I cannot select my newly uploaded build in app store connect for review. The UI to select a different build is just gone. I have reached out to apple and they said they are aware and fixing it but its been a week since and nothing has changed.
I uploaded a build to be reviewed to app store connect, and it got rejected due to an issue with connecting to my server. I discovered the issue was that my server was using http rather than https and apple doesn't allow this. I including things in my info.plist to allow the http connection, and I think this could be what triggered this app store connect issue, but I think xCode would have told me there was info.plist issue with my build while trying to upload it so I don't know. I have since migrated my app to https and uploaded a new build and I still can't select it to be reviewed. Anyone else have any similar issues?
It's quite annoying (maybe it's only my personal interests). Some apps or the macOS system always create ~/Applications/asr directory and create some txt files in it.
asr20240708_1638030_0.txt
{"type":"asr","wp_version":"","easr_version":"e792c1d2b4b5055e56fb902dfefdb483802041cc_Thu_Dec_30_17:18:43_2021_+0800","spil_version":"","wpe_version":"","vad_version":"9db42b766a4bc4e853bfa3fd2f846bf931d6c05f_Wed_Mar_24_15:56:16_2021_+0800","header_type":0}
It there any way to disable this 'useful' feature?
Some of the errors like ".framework contains disallowed nested bundles" we find out at later stage when uploading builds to TestFlight.
It will be great if we can have similar script that apple uses or some custom script to verify it during the build time.
So before I reinvent the wheel is there any script I can use at build time to detect this issue?
I‘ve created text classification project and selected BERT algorithm With 100 iterations for json file. Json file is valid but training always cancels on 37 iteration…
Because tool does not provide any cancellation reasons I have no clue why it happens. Can I check reasons somehow? Or do anyone knows possible reasons or solutions for this?