Problem description
After updating the macos system and turning off SIP in mbp version 2022, the applications on the ipad installed on the system do not start properly and the following error is reported when running the open command in the terminal:
longyudeMacBookPro:~ longyu$ open -a "xxx"
_LSOpenURLsWithCompletionHandler() failed for the application /Applications/xxx.app with error -10671.
longyudeMacBookPro:~ longyu$
Note: The program name is for example only.
Equipment model and version information
mbp 2022
mac version: macOs Monterey version 12.6
Resolution process
- Checked app permissions – no exception found
- Tried to change application permissions – still can’t start after changing
- Check if there is already a process running – open activity monitor, no relevant process found
- Think about the items that the system modifies when it works and when it does not work
- Suspect a relationship with the SIP configuration.
Solution:
When the computer is shut down, long press the shutdown key to enter the recovery mode, open the terminal, execute csrutil enable to enable SIP, and restart the system. After re-entering the system, the program starts normally.
Other problems:
I searched the web for the return value of _LSOpenURLsWithCompletionHandler and did not find the meaning of the -10671 return value. The original intention of closing SIP was to use dtrace, a long-known program, normally, but since it has such a side effect after closing it can only be opened temporarily for fun, not all the time.
Read More:
- [Solved] Eslint error: /xxx/components/xxx import should occur after import of /xxx/utils/xxx
- [Solved] validateRenderPassDescriptor:xxx: failed assertion XXX
- Spark-shell startup error: Yarn application has already ended! It might have been killed or unable to launch application master
- Springboot running shows application run failed [How to Solve]
- [Solved] Android Develop Error: xxx does not have a NavController set on xxx
- [Solved] Phone Debug Program Error: The application could not be installed: INSTALL_FAILED_TEST_ONLY
- [Solved] The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS
- The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
- [Solved] Could not resolve placeholder ‘XXX‘ in value “${XXX}“
- [Solved] Failed to load property source from location ‘classpath:/application.yml‘
- [Solved] Event Log Error: Failed to retrieve application JMX service URL
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- [Solved] kernel: nvme nvme0: I/O xxx QID xxx timeout, aborting
- [Solved] PySide2 Error: This application failed to start because no Qt platform plugin could be initialized
- [Solved] Android Studio 4 Error: The application could not be installed: INSTALL_FAILED_OLDER_SDK
- [Solved] Failed to apply plugin ‘com.android.internal.application‘.
- How to Solve Application failed to start error
- [Solved] Android12 Download Error: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- blackduck Error: Request failed authorization [HTTP Error]: XXX, response was 403 Forbidden.
- [Solved] Bat starts springboot project error: ERROR org.springframework.boot.SpringApplication -Application run failed