Tag Archives: ProgrammerAH

iOS Failed to find matching arch for 64-bit Mach-O input file

from where to see a blog I forgot, there is no link here.

Takeshi – mato – iPhone itunesstored – & lt; Warning> : [ApplicationWorkspace]: Failed to install application: cn.ac.sec.HealthCareDoctor; /var/mobile/Media/Downloads/2686208517752305961/4992622475604659910; Error Domain=LaunchServicesError Code=0 “(null)” UserInfo={Error=IncorrectArchitecture, ErrorDescription=Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.K3my5D/extracted/Payload/HealthCareDoctor.app/HealthCareDoctor}

One less editor to pack in build Setting

Build Active Architecture Only sets Release to NO to contain all compilers

This property is set to YES for faster compilation on Debug, which only compiles the current architecture version.

and set to no, all versions are compiled.

this is the architecture corresponding to the device:

  
  1. ARMv8/ARM64: iPhone 6(Plus), iPhone 5s, iPad Air(2), Retina iPadMini(2,3)

    ARMv7s: iPhone 5, iPhone 5c, iPad 4 

    ARMv7: iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad2, iPad 3, iPadMini   

    ARMv6: iPhone, iPhone 3G, iPod 1G/2G

The compiled version is backward compatible. For example, if you set this value to yes, the compiled version with iphone4 will run with armv7, and iphone5 will also run, but the device with armv6 will not.

therefore, debug can choose to set to yes, release to no, to adapt to different devices.

What about ibtool failed with exit code 255? processing method

: Command/Applications/Xcode. The app/Contents/Developer/Platforms/iPhoneSimulator platform/Developer/usr/bin/ibtool failed with exit code 255


solution:

is basically clean plus clear cache, the steps are as follows:


  • clean your project
  • delete the cached data (Organizer-> Projects-> Derived Data tap ‘Delete… ‘
  • insure that for this XIB the proper versioning is set (select XIB, 3rd Xcode tab on right, File options:
  • close the project
  • quit Xcode
  • reopen Xcode, then the product
  • try again

Getting CFNetwork SSLHandshake failed (-9806) error

usually personal test pack everything is OK, today suddenly can not connect to the Internet

How to handle “CFNetwork SSLHandshake” in iOS
reference 1

Getting CFNetwork SSLHandshake (-9806) error
reference 2

Reference 3

company network protection action, personal mobile phone IP is banned.

reproduced in: https://www.cnblogs.com/wjw-blog/p/11095150.html

Failure [DELETE_ FAILED_ INTERNAL_ Error] and RM APK is unloaded

uninstall a software

today with adb uninstall com.xx. Xx

result error: Failure [DELETE_FAILED_INTERNAL_ERROR]
finally, there is no way, installed a kingroot, through kingroot uninstall…

now we know:
first: adb shell PM list list packages -s find the package name to delete
get the package name address: adb shell PM path com.xx. Xx
mount system read/write access: adb remount
delete the package: The adb shell rm/system/app/OldDriver/OldDriver apk
the last reboot to restart adb is OK

delete all package-related data, clear data and cache: adb shell PM clear < PACKAGE>

output APK path of installation package: adb shell PM path < PACKAGE>

,
https://blog.csdn.net/sunfellow2009/article/details/78435925 copyright statement: this article original articles for bloggers, reproduced please attach link to blog!

Linux error ttyname failed: inappropriate IOCTL for device solution

when I use git push, hexo deploy and similar operations, I often see an error message ttyname failed: Inappropriate ioctl for device. How does this work, not 0 errors,0 warnings work?The solution to this problem is documented here.

problem cause

Ubuntu knows that not everyone will perform graphical logins on the root account, so in the default .profile file it is set to generate a false error in this case. As you can see, there is a line at the end of the /root/.profile.

mesg n || true

what is this?This is to prevent programs like talk from writing to your console, which is especially important if you are logging into your root account via a text session. || true is to prevent an error when the request for tty fails from causing the shell script to abort.

put this sentence in the .profile file, which allows you to execute this sentence every time you run bash. When you run from a painting without a TTY device, you will see an error, and this will not affect other programs, just a message will be displayed.

solution

is harmless, but it’s not comfortable to see the error message all the time, so get rid of it.

change /root/. Profile filemesg n || true to the following.

tty -s && mesg n || true

this allows mesg not to send a message when there is no tty, but to continue calling when there is one. Now you can see that ttyname failed: impatient ioctl for device.

Solved “openssl config failed: error:02001003:system library:fopen:No such process” for Nodejs Windo

If you get this error after installing nodejs in windows 10, your ssl is not pointing correctly
So you must point to the correct path echo %OPENSSL_CONF% (see your openssl path)set OPENSSL_CONF=C:\OpenSSL\bin\ OpenSSL .cnf (set your OpenSSL path)

Then enter

Code npm – v
In cmd again

You should be able to operate smoothly.

The app failed to start because there is no Qt platform to initialize

problem description: This application failed to start because no Qt platform plugin could be initialized.


I installed the python environment and PyQt5 library


solution:

CMD command line input PIP list to view the installed python library

1, first uninstall PyQt5, enter PIP uninstall PyQt5 to uninstall

2. Find the installation location of PyQt5 after uninstalling, and directly delete the folder

3. Delete environment variables

win10: this computer — > Property – & gt; Advanced system Setup — & GT; Advanced – & gt; Environmental variable — & GT; The system variable
removes the variable named QT_QPA_PLATFORM_PLUGIN_PATH
4. Delete and reinstall PyQt5

command PIP install PyQt5
(download slow if the command line, you can go to the website https://pypi.org/project/PyQt5/#files links from thunderbolt download, download after install, remember not to the right version, don’t know which version download can on the command line input PIP install PyQt5 enter, displays are behind the download version, I download file is the following version
)

5. Configure environment variables after installation, and restart the computer after configuration.

variable name: QT_QPA_PLATFORM_PLUGIN_PATH
variable value: C:(PyQt5 installation path)\Python\ python38-32 \Lib\site-packages\PyQt5\Qt\plugins

Differences between using VaR and omitting VaR to define variables in JS

define variables in js, we use var, accustomed to omit the var can actually use.

, use var or omit var to define variable difference
1, var private variable, can only be used in the current js, or use in the current scope, define private variable, can not delete; 2. Var definition variables are omitted, such as a = “SSS”, which defines a global variable object a. Before a is deleted, we can directly input a in the browser console and then see the result.

is not recommended to omit var, when var is omitted to be careful
var will bring the following:

  1. semantic unclear.
  2. team development, easy to overwrite other scoped variables, throwing exceptions.
  3. add unnecessary members to the window object, which is unnecessary pollution brings to the window, so use the best delete off, by the way, lest affect other variable
    the original links: https://www.cnblogs.com/qijuzi/p/8329994.html