Error domain nsosstatuserrordomain code 10814

Problem I was trying to use uri-scheme to test deep linking, but for some reason it failes on the macbook m1 pro command: npx uri-scheme open safari:// --ios logs: › iOS: Opening URI "safari:/...

Problem

I was trying to use uri-scheme to test deep linking, but for some reason it failes on the macbook m1 pro

command: npx uri-scheme open safari:// --ios
logs:

› iOS: Opening URI "safari://" in simulator
An error was encountered processing the command (domain=NSOSStatusErrorDomain, code=-10814):
The operation couldn’t be completed. (OSStatus error -10814.)

Aborting run
An unexpected error was encountered. Please report it as a bug:
Error: xcrun exited with non-zero code: 194
    at ChildProcess.d (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:1073)
    at Object.onceWrapper (node:events:510:26)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
    ...
    at Object.spawnAsync [as default] (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:558)
    at Object.openAsync (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:485862)
    at Object.openAsync (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:490506)
    at Command.<anonymous> (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:481784)
    at Command.r (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:465437)
    at Command.emit (node:events:390:28)
    at Command.parseArgs (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:468609)
    at Command.parse (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:466564)
    at Object.<anonymous> (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/cli.js:5:9)
    at Module._compile (node:internal/modules/cjs/loader:1101:14) {
  pid: 40523,
  output: [ '', '' ],
  stdout: '',
  stderr: '',
  status: 194,
  signal: null
}

Info

hardware: Macbook Pro m1
OS: macOS monterey
node: 16.13.1
npm: 8.1.2

Replies

Hello,

Because the app is deployed both on App Store and Enterprise In House but with different ids, seems that the App Store ones is poping from somewhere.
But this issue arise only on iOS 16

below, I expect <BUNDLE ID 2> but found references of <BUNDLE ID 1> in the logs

Same error here. I found that in the Console App logs:

-[IXSClientConnection _remote_prioritizeCoordinatorForAppWithIdentity:completion:]: No coordinator found for <bundle identifier> and app is not vendable by App Store or is a hard error (1) so showing alert

[...]

-[IXSErrorPresenter presentErrorForIdentities:code:underlyingError:errorSource:]: Asked to present alert for error 1 source MobileInstallation underlying error Error Domain=MIInstallerErrorDomain Code=180 "The item being installed did not contain an app with bundle ID **"<BUNDLE ID 1>"**, but it did contain app(s) with bundle ID(s): {(
  **"<BUNDLE ID 2>"**
)}" UserInfo={SourceFileLine=450, NSLocalizedDescription=The item being installed did not contain an app with bundle ID **"<BUNDLE ID 1>"**, but it did contain app(s) with bundle ID(s): {(
  **"<BUNDLE ID 2>"**
)}, FunctionName=-[MIInstaller _bundleInDirectory:withBundleID:error:]} for identities (
  "[**<BUNDLE ID 1>**/P]"
)

Same for us. The apps installed previously still work; new installs are broken

Hello,
I have the same problem.
But my app is not registered in the App Store.
No cause has been found for the problem.

I solved the problem for us changing the manifest.plist file.
I spotted that the specified bundle identifier was wrong:

...
<key>bundle-identifier</key>
                <string>{{bundle identifier to correct}}</string>
...

Same problem here. I have enterprise app (the certificate is in-House). I create a IPA file who’s ditributed by a download web link. All was ok with iOS15, but with iOS 16, the IPA seems downladed but can’t be installed. Any solution ?

i face the same problem. any solutions?

error 13:21:52.809111+0300 symptomsd COSMCtrl applyPolicyDelta unexpected absence of policy on appRecord {{APP bundle id}} bg time + grace 2022-09-18 13:22:47.325 +0300 now 2022-09-18 13:21:52.805 +0300


error 13:21:57.483336+0300 SpringBoard [{{APP bundle id}}] Push registration with a nil environment was encountered, will not invalidate token


error 13:22:09.058161+0300 appstored [UPPDDAECE82/{{APP bundle id}}/1B0FEA63] No reporting as request reason is unspecified


error 13:22:09.643085+0300 storekitd Error looking up app with bundle ID {{APP bundle id}}: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1538, _LSFunction=runEvaluator}


error 13:22:09.660835+0300 SpringBoard  Applications did fail to install: (
   "<LSApplicationProxy: 0x280351440> {{APP bundle id}} file:///private/var/containers/Bundle/Application/007A8406-DE66-4B28-B6C2-EB6BB296013E/Runner.app/ <{{APP bundle id}} <placeholder >:1>"
) (appInfos: (null))


error 13:22:09.765932+0300 appstored  [UPPDDAECE82/{{APP bundle id}}] Failing installation after receiving error: Error Domain=IXUserPresentableErrorDomain Code=1 "Unable To Install “Runner”" UserInfo={NSLocalizedDescription=Unable To Install “Runner”, NSLocalizedFailureReason=Please try again later., NSLocalizedRecoverySuggestion=Could not extract archive, NSUnderlyingError=0x103f40510 {Error Domain=MIInstallerErrorDomain Code=5 "Could not extract archive" UserInfo={NSLocalizedDescription=Could not extract archive, LegacyErrorString=PackageExtractionFailed, FunctionName=+[MIBOMWrapper extractZipArchiveAtURL:toURL:withError:extractionProgressBlock:], SourceFileLine=223, NSUnderlyingError=0x103f1a000 {Error Domain=NSPOSIXErrorDomain Code=0 "Undefined error: 0"}}}}


error 13:22:11.479788+0300 storekitd    Error looking up app with bundle ID {{APP bundle id}}: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1538, _LSFunction=runEvaluator}

I solved the problem for us changing the plist file.I think the bundle-identifier validation might be very strict on iOS16.

<key>bundle-identifier</key>
<string>exact bundle-identifier value</string>

I also solved iOS16 installation error fixing bundle-identifier value inside .plist file, using exact value from Targets —> App —> General —> Identity —> Bundle Identifier

<key>bundle-identifier</key>
<string>exact bundle-identifier value</string>

The bundle identifier in your manifest.plist has to be written in the exact same way like in your Xcode project settings. Since iOS 16 it’s case-sensitive.

Additionally to <key>bundle-identifier</key> we needed to set <key>title</key> to the exact name of our application in the manifest (plist file)

If someone is using cordova: set bundle-identifier the same as widget’s id attribute and title to name element of the cordova’s config.xml

We changed our bundle identifier in the plist file from «countryshortcode.companyname.appidentier» to only «appidentifier» and now it works on IOS 16 as well.

Я пытаюсь реализовать кнопку, чтобы открыть приложение iOS из своего виджета. Я понимаю, что эта проблема была избита до смерти на форумах, но я не могу найти объяснения с конкретной ошибкой, которую я получаю. Возможно, некоторые из вас, более опытные разработчики iOS, могут пролить свет на это.

Я разрабатываю обновление для одного из моих приложений iOS для iOS 10 с использованием XCode 8.1 и Swift 2.

Код для моей кнопки виджетов:
Изображение 22982

URL-схема, добавленная в виджет info.plist:
Изображение 22983

Ошибка выполнения, которую я получаю при нажатии кнопки OpenApp:

AppWidget[11872:3577323] __55-[_NCWidgetExtensionContext openURL:completionHandler:]_block_invoke failed: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)"

//Примечание: имя приложения заменено соответствующими дженериками.

05 нояб. 2016, в 17:37

Поделиться

Источник

3 ответа

Я часто нахожу «Поиск состояния ОС» , очень полезный для вывода деталей из ошибок. Ошибка ОС с кодом -10814 — это kLSApplicationNotFoundErr, которая описывает сценарий, когда:

Ни одно приложение в базе данных запуска не соответствует критериям ввода.

Похоже, что ваше приложение не было должным образом зарегистрировано в системе в качестве потребителя используемой вами схемы URL. У вас есть двойной двойной (двойной!) Флажок, который соответствует идентификатору пакета и схеме URL? Вы подтвердили, что ваше приложение можно запустить с URL-адресом из Safari?

Kasper Munck
14 дек. 2016, в 11:14

Поделиться

Чтобы открыть Содержащее приложение из текущего расписания:

let myAppUrl = URL(string: "main-screen:")!
extensionContext?.open(myAppUrl, completionHandler: { (success) in
    if (!success) {
        print("error: failed to open app from Today Extension")
    }
})

Вам также необходимо добавить следующие строки в приложение info.plist(открыть как исходный код):

    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleURLName</key>
            <string>com.mikitamanko.bubblewrap</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>main-screen</string>
            </array>
        </dict>
    </array>

сразу после

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>

Здесь полное руководство, как открыть приложение или поделиться пользователями по умолчанию с расширением и содержащим приложение.

Mikita Manko
16 фев. 2017, в 07:09

Поделиться

Схема URL должна добавляться в основное приложение info.plist, а не в виджет.

Eva Hsueh
09 март 2017, в 15:10

Поделиться

Ещё вопросы

  • 1Revit API — предложить пользователю создать вертикальный столбец
  • 1Объединять файлы по имени последней подпапки
  • 0Как я могу отобразить все видео в каталоге через HTML5 и PHP?
  • 0Alt тег не отображается в браузере
  • 0Продолжительность между двумя раза в PHP MySQL
  • 0Как разместить собственный объект класса в CCArray?
  • 1Android-приложение с внешним кодом / приложением?
  • 0Оптимизировать функцию ucallwords
  • 0angular — как я могу разобрать параметры запроса из отдельной строки
  • 0Объедините несколько групп регулярных выражений в одном регулярном выражении
  • 0Вернуть только необходимое значение с preg_match
  • 0Выпадающее меню скрыто за
  • 0Проблема совместимости браузера для HTML-файла с Internet Explorer
  • 1Python не может найти модуль в родительском каталоге
  • 0MFC ActiveX CShockwaveflash элемент. Как отключить контекстное меню?
  • 0Как не вызывать директиву каждый раз, когда я перезагружаю страницу
  • 0Обеспечение безопасности типов в существующих навязчивых связанных списках C
  • 1Размер изображения с Selenium
  • 1JavaScript — использование ловушки прокси при создании объекта
  • 1Заставить кнопку распознавать текст в JTextField
  • 1Threadsafe События с использованием барьеров памяти
  • 0Box2D: заставлять тела падать через случайные интервалы
  • 0Столбец строки индексации экономии пространства SQL в виде enum
  • 1Как управлять действиями в Android?
  • 1У Java split () есть место в индексе 0
  • 0Вложенные данные ng-repeat неправильно привязаны к директиве
  • 1Создание одного процесса в C # для получения нескольких собственных сообщений Chrome
  • 0javascript onclick не работает на элементе P
  • 1EventWaithandle против while (true) Thread.Sleep
  • 1Несколько простых графиков на одной странице d3.js
  • 1Python запросы — Put игнорирует загрузку файлов
  • 1Обнаружение символов, которые не заключены в двойные кавычки (регулярное выражение)
  • 1Почему InitializeComponent (); недоступен из-за уровня защиты?
  • 0Как установить ng-disabled на false для конкретной кнопки
  • 0Получить тип enum для класса с помощью cin
  • 1Вызов функции из одного компонента в другой компонент Angularjs 2 [duplicate]
  • 1Как работает полиморфизм для внутренних классов?
  • 0Язык браузера и кнопка Facebook
  • 1Как отладить код JavaScript, когда он загружен document.write?
  • 0Как я могу отформатировать способ, которым Apache регистрирует ошибку?
  • 0Журнал ошибок PHP с ошибкой URL
  • 0Текстовое поле не может отображать всю строку из автозаполнения. Как мне сделать так, чтобы оно показывало начало выбранной строки?
  • 0Туннельный шейдер (преобразован из WebGL в OpenGL) — координаты текстуры не совпадают?
  • 1Привязка сокета к другому порту на другом компьютере?
  • 1flask_restful import Ошибка ресурса
  • 0Как переключать изображения при наведении, используя флип-плагин
  • 0невозможно использовать datetimepicker с jquery mobile
  • 0Выбор из таблиц с отношениями многие ко многим
  • 1Обработка MIME-типа, который является результатом браузера POST в Android
  • 0Показать случайное изображение из каталога с помощью php

Сообщество Overcoder

EduardoAraujoB

uri-scheme an unexpected error was encountered. Please report it as a bug

Problem

I was trying to use uri-scheme to test deep linking, but for some reason it failes on the macbook m1 pro

command: npx uri-scheme open safari:// --ios
logs:

› iOS: Opening URI "safari://" in simulator
An error was encountered processing the command (domain=NSOSStatusErrorDomain, code=-10814):
The operation couldn’t be completed. (OSStatus error -10814.)

Aborting run
An unexpected error was encountered. Please report it as a bug:
Error: xcrun exited with non-zero code: 194
    at ChildProcess.d (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:1073)
    at Object.onceWrapper (node:events:510:26)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
    ...
    at Object.spawnAsync [as default] (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:558)
    at Object.openAsync (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:485862)
    at Object.openAsync (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:490506)
    at Command.<anonymous> (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:481784)
    at Command.r (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:465437)
    at Command.emit (node:events:390:28)
    at Command.parseArgs (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:468609)
    at Command.parse (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/build/index.js:1:466564)
    at Object.<anonymous> (/Users/eduardoaraujob/.npm/_npx/0475317ec596de5d/node_modules/uri-scheme/cli.js:5:9)
    at Module._compile (node:internal/modules/cjs/loader:1101:14) {
  pid: 40523,
  output: [ '', '' ],
  stdout: '',
  stderr: '',
  status: 194,
  signal: null
}

Info

hardware: Macbook Pro m1
OS: macOS monterey
node: 16.13.1
npm: 8.1.2

kbrandwijk

What is this ‘safari://’ uri scheme?

EduardoAraujoB

its a deeplink just to test if I can open safari, but it also doesnt work for other apps

EduardoAraujoB

I found what is causing the problem and it seems to be an issue with macOS because the command that crash is this one
xcrun simctl openurl booted someapp://route
it does that with this message

An error was encountered processing the command (domain=NSOSStatusErrorDomain, code=-10814):
The operation couldn’t be completed. (OSStatus error -10814.)

kbrandwijk

It gives that error when you try to use a scheme that doesn’t exist (safari:// doesnt’ exist). Try maps://something or another known good one.

EduardoAraujoB

ok, will try it out, thanks

ToniLloyds

I have similar problem. Just added new uri-schema and if i run npx uri-scheme list it shows this schema. So it should exist ?

damien-mcmahon

Hopefully you’ve resolved the problem, I had the same issue but have just upgraded Xcode tools to 13.3 and this problem has now gone away.

aphillipo

I’ll update Xcode I guess then… 😂

EvanBacon

The deep link to test safari is “https://“

github-actions

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

cmejet

@aphillipo did updating xcode resolve your issue? I’m on 13.3 and I’m still getting the error on m1.

github-actions

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

insacc

I’m having this issue as well, I’m on the latest code version so I cannot update it, does anyone have any idea why it might be happening?

У меня в Swift есть этот код:

       Text(item.telephone)
        .onTapGesture {
              guard let number = URL(string: "tel://" + item.telephone) else { return }
              UIApplication.shared.open(number)
         }

И я хочу, чтобы он назвал номер, который показывает. Я пробовал с +994 и без, но в любом случае мне дали

 Failed to open URL tel://0501234556: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=247, _LSFunction=-[_LSDOpenClient openURL:options:completionHandler:]}

Как я могу решить эту проблему?

1 ответ

Лучший ответ

Обновление: похоже, вы используете симулятор, чтобы открыть tel://, что приведет к ошибке, которую вы получили. Поэтому проверьте, можно ли открыть URL-адрес с помощью canOpen() перед выполнением open().

Text(item.telephone)
    .onTapGesture {
        guard let number = URL(string: "tel://" + item.telephone) else { return }
        if UIApplication.shared.canOpenURL(number) {
            UIApplication.shared.open(number)
        } else {
            print("Can't open url on this device")
        }
}

Примечание. Убедитесь, что параметр item.telephone не содержит ничего, кроме числа.


0

Frankenstein
21 Июн 2020 в 16:38

Понравилась статья? Поделить с друзьями:
  • Error domain nscocoaerrordomain code 512
  • Error domain com apple mobiledevice mobilerestore code 1
  • Error domain 1015
  • Error doing job task was destroyed but it is pending
  • Error doing job task exception was never retrieved