Posts

Post not yet marked as solved
3 Replies
Thanks for reply Here's the notarytool command I used. (try both keychain profile and id base) $ xcrun notarytool submit ./mynotarytarget.pkg --team-id "myteamid" --keychain-profile "Notarize" $ xcrun notarytool history --apple-id "myappleid@email" --password "mypassword" --team-id "myteamid" this is altool command before i used. (worked for same Network) $ xcrun altool --notarize-app --primary-bundle-id "mybundleid" --username "myappleid@email" --password "mypassword" --file ./mynotarytarget.pkg Here's log with -vvvv option [00:39:51.918Z] Info [API] Initialized Notary API with base URL: https://appstoreconnect.apple.com/notary/v2/ [00:39:51.919Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/submissions?, Parameters: [:], Custom Headers: private<Dictionary<String, String>> [00:39:51.919Z] Debug [AUTHENTICATION] Delaying current request to refresh app-specific password token. [00:39:51.920Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/asp?, Parameters: [:], Custom Headers: private<Dictionary<String, String>> [00:39:51.920Z] Debug [AUTHENTICATION] Authenticating request to '/notary/v2/asp' with Basic Auth. Username: myappleid@email, Password: private<String>, Team ID: myteamid [00:39:51.921Z] Debug [TASKMANAGER] Starting Task Manager loop to wait for asynchronous HTTP calls. [00:39:52.069Z] Error [API] Encountered HTTP error: Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000a3d680 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>" ), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://appstoreconnect.apple.com/notary/v2/asp?, NSErrorFailingURLKey=https://appstoreconnect.apple.com/notary/v2/asp?, _kCFStreamErrorDomainKey=1} [00:39:52.070Z] Error [TASKMANAGER] Completed Task with ID 2 has encountered an error. [00:39:52.070Z] Debug [TASKMANAGER] Ending Task Manager loop. Error: HTTPError(statusCode: nil, error: Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000a3d680 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>" ), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://appstoreconnect.apple.com/notary/v2/asp?, NSErrorFailingURLKey=https://appstoreconnect.apple.com/notary/v2/asp?, _kCFStreamErrorDomainKey=1})
Post not yet marked as solved
3 Replies
Sorry. I mean I'm failed to notarizing package include "MyApp", so I try to notarizing "MyApp" and packaging it. But it still shows "The signature of the binary is invalid.".
Post marked as solved
5 Replies
Hi. I finally solve this problem just launch it by launchctl load. Thanks for your help.
Post marked as solved
5 Replies
Here is my app's crash report. And when I running my app(App.app/Contents/MacOS/app) print error message: ERROR: "Application needs to run as root (and SIP disabled)." Log - https://developer.apple.com/forums/content/attachment/0812ef07-2cb0-4026-86c7-7c524e53bc29
Post marked as solved
5 Replies
To Eskimo. Thanks for your answer. Yes, I test my app with SIP enabled. However, even if I test with SIP disabled, I get the same result.
Post marked as solved
1 Replies
I solve this problem via using another method terminateClient. IOService* pService; ... pService->terminateClient(pService->getClient(), kIOServiceRequired | kIOServiceAsynchronous); But I still wonder that IOService::terminateRequest is deprecated.