-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to unhide archs in executable file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp #14100
Comments
It looks like the application bundle has some resources inside it that are named weirdly. Make sure the file names inside the app bundle only contain ASCII characters. |
@mykola-mokhnach Is it because of these filenames |
I assume these file names must be fixed in order to make it working with appium. In general, zip archives are not very happy about unicode chars in file names. |
|
Because this might take too much effort to make it working. I have proposed an easy and fast workaround though. Feel free to commit a PR to Appium if you have any good ideas. |
@mykola-mokhnach I have modified the file names of Chinese characters. All file names are ASCII characters, but they cannot be installed。 Link to Appium logsError: Unexpected data: {"Error":"APIInternalError","ErrorDescription":"Failed to unhide archs in executable file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.l0isN7/extracted/ztjyyd.app/%E6%8E%8C%E9%80%9A%E5%AE%B6%E5%9B%AD%E5%9B%AD%E4%B8%81" |
Copied app already had wrong file name. The
|
This is most likely related to max-mapper/extract-zip#74 Long things short - |
Yeah, I read the same place.
|
@KazuCocoa I would say this is an issue of MacOS ZIP library itself. See https://stackoverflow.com/questions/13261347/correctly-decoding-zip-entry-file-names-cp437-utf-8-or In theory zip libraries that use UTF-8 to encode file names must trigger the General Purpose Unicode flag for such archive. yauzl properly handles files and defaults to CP437 if the flag is not set. A possible solution could be to repack the archive manually and set the necessary flag. Another solution would be to guess file names encoding upon file extraction as it is stated in thejoshwolfe/yauzl#42 (comment). This could potentially bring new issues, since file names parsing will be completely on our side (currently the https://github.com/maxogden/extract-zip wrapper over yauzl is used for zip extraction) |
thanks. |
|
unzipper did not work, but the below could be the next item. https://github.com/appium/appium-support/blob/master/lib/zip.js#L25-L27
|
The patch has been published to appium@beta |
The problem
I can't use appium desktop to install ". IPA" package to the real device by setting the app of capability, but I can install it normally by using ideviceinstaller - I ". IPA". When I use ideviceinstaller - I ". IPA" to install, I can use bundleid to start the app
Environment
Details
I can't use appium desktop to install ". IPA" package to the real device by setting the app of capability, but I can install it normally by using ideviceinstaller - I ". IPA". When I use ideviceinstaller - I ". IPA" to install, I can use bundleid to start the app
Link to Appium logs
[error] [XCUITest] Error: Unexpected data: {"Error":"APIInternalError","ErrorDescription":"Failed to unhide archs in executable file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.T1ia91/extracted/aaa.app/%E6%8E%8C%E9%80%9A%E5%AE%B6%E5%9B%AD%E5%9B%AD%E4%B8%81"}
[error] [XCUITest] at InstallationProxyService._isFinished (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-ios-device/lib/installation-proxy/index.js:132:13)
[error] [XCUITest] at InstallationProxyService._isFinished [as _waitMessageCompletion] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-ios-device/lib/installation-proxy/index.js:124:16)
[error] [XCUITest] Error: Could not install app: 'Unexpected data: {"Error":"APIInternalError","ErrorDescription":"Failed to unhide archs in executable file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.T1ia91/extracted/aaa.app/%E6%8E%8C%E9%80%9A%E5%AE%B6%E5%9B%AD%E5%9B%AD%E4%B8%81"}'
[error] [XCUITest] at IOSDeploy.install (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:41:13)
The text was updated successfully, but these errors were encountered: