Introduction
Welcome to Mobile Application Shielding for iOS 9.0.2!
This is a maintenance release of Mobile Application Shielding. For more information about new features and fixed defects, refer to the respective chapters in this article. For information about configuring and using Mobile Application Shielding, see the Mobile Application Shielding Integration Guide.
Upgrade strategy
Version 9.0.2 is a Stable release. If your goal is to maintain predictable stability, upgrade to this version. For more information about our versioning and upgrade strategy, see Release Tracks.
Supported versions
Supported versions of App Shielding
Over the next months, support for a number of Mobile Application Shielding versions will expire on the OneSpan Mobile Portal. For more information, see Unsupported versions of Mobile Application Shielding Online.
Supported platform versions
iOS/tvOS/iPadOS 15 up to iOS/tvOS/iPadOS 27.
With the end of support for iOS 9.0, support for 32-bit architectures also ended.
Shielding Tool:
Windows 10: 64-bit Java 17
macOS X (10.15+)
The Shielding Tool requires a macOS system to sign applications.
Ubuntu Linux 20.04 LTS or 22.04
Xcode 15 and later. We recommend using the latest stable Xcode version.
iOS platform updates
App Shielding version 9.0.2 is compatible with the latest iOS/tvOS/iPadOS 27.
Changes and deprecations
[Applicable to Premium Features only] OneSpan Code Obfuscation for JavaScript changes
For OneSpan Code Obfuscation for JavaScript, the following changes were implemented:
The transpiler no longer needs to be switched on. Code Obfuscation down-levels your code whenever the
targetVersionis lower thanlatest, and never otherwise. TheenabledandsourceTypefields are still accepted but have no effect. This changes the output of older configurations in the following ways:enabled: truewithout atargetVersionpreviously produced ES5 code. It now leaves your code’s syntax unchanged. SettargetVersionexplicitly if you need older output.enabled: falsecombined with atargetVersionpreviously produced no down-leveling. It now down-levels to that version. RemovetargetVersionto keep your code’s syntax unchanged.
targetVersionvalues must be lowercase. Previous configurations usedtargetVersion: "Es2020", but this is now rejected with a validation error. Change it to"es2020".The oldest supported output version is now
es2016. The previous values ofes3,es5, andes2015are rejected. If you need ES5 or ES2015 output, stay on App Shielding Offline for iOS 9.0.1 for now, or down-level the protected output with a separate toolES modules are now kept as ES modules. Previously, enabling the transpiler converted
importandexportto CommonJS (requireandmodule.exports). The output now keepsimportandexport. If you relied on CommonJS output, then convert your code before protecting it.The
moduleoption is deprecated. Code Obfuscation detects modules fromimportandexportsyntax, so themoduleoption no longer has any effect. It is still accepted, with a warning, but will be removed in a future major release. It is recommended to removemodulefrom your configuration.Configurations are validated more strictly. An unrecognized option name in a file entry, such as a misspelling, was silently ignored in earlier versions but is now reported as a validation error.
Legacy octal number literals (e.g.,
055) are rejected, even though earlier versions accepted them. Rewrite them in the ES2015 form (0o55).The protected output is larger. Per-function integrity checks increase the output size. In our, the output was between 2% and 28% larger than with earlier versions, with the largest increases seen on small files.
New features and other updates
[Applicable to Premium Features only] OneSpan Code Obfuscation: JavaScript Obfuscation engine upgrade
The JavaScript obfuscation engine has been upgraded to v3.0.4, which includes the following new features: (Resolves issue INT-692)
The control-flow flattening feature rewrites the bodies of eligible functions into a flat state machine, hiding their original structure. Control-flow flattening is disabled by default but can be enabled in the following manner:
controlFlow: { enabled: true, include: [ "*" ], exclude: [ "hotLoop*" ] }When integrity checking is also enabled, flattened functions depend on the integrity checksums, so tampering corrupts their control flow.
The new function virtualization feature compiles selected functions to a custom bytecode, unique to each build, that runs on an interpreter embedded in the output. This is the strongest protection Code Obfuscation offers, but also the most expensive at runtime, so select your most sensitive functions by name. For example:
vm: { enabled: true, include: [ "computeLicence", "verify*" ], exclude: [] }When integrity checking is also enabled, the bytecode of virtualized functions is protected against tampering, too.
TypeScript input is now detected automatically; you no longer need to declare the source type. The output language follows the output file’s extension. A
.tsor.tsxoutput keeps its type annotations (and starts with// @ts-nocheck). Any other output is JavaScript.The new
transpiler.targetVersionconfig option can specify the ECMAScript version of the output. Valid outputs arees2016,es2017,es2018,es2019,es2020,latest, oresnext. The default,latest, keeps your code’s syntax as it is.
Fixes and other changes
SHIOS-3857, SHIOS-3869: Reduced hooking checks scope
Description: The scope of Objective-C hooking checks on startup was reduced so that the checks complete sooner. This allows OneSpan API Protection checks to complete sooner.
SHIOS-3756, SHIOS-3851: Hiding external and mirrored displays
Description: Fixed the Block external screens option for apps that use the UIScene life cycle, so external and mirrored displays, including the keyboard, are now hidden.
[Applicable to Premium Features only] For OneSpan Code Obfuscation licenses, the following changes were implemented:
Integrity checking now protects every eligible function. Previously, integrity checks were placed at a random sample of statements (
checkFrequency), so an edited function was often never verified. Each eligible function now verifies its own source the first time it is called.Checks run once per function, so frequently called functions are not slowed down afterwards. Functions that your code replaces at runtime (e.g.,
myFunc = optimizedFunc) are not guarded, as their source legitimately changes.When a file cannot be protected (e.g., because of a syntax error), Code Protect no longer writes an empty output file and reports success. No output is written for that file, the other files are still processed, and Code Protect exits with a non-zero status, so build pipelines detect the failure.
Known limitations
The limitations described here have not yet been solved for the current Mobile Application Shielding version. Possible workarounds are described where available.
Updatable configuration cannot be used to modify the URL for exit on screen recording
You can only update the actual App Shielding configuration with the updatable configuration feature. You cannot use an updatable configuration to modify the URL for exiting an app when App Shielding detects that the screen is being recorded.
Exit URL variable not replaced due to plugin limitation
For the Exit URL Launching feature, the URL used to launch the web browser can use variable placeholders. App Shielding substitutes these placeholders to provide the relevant information inside the URL itself. For the Exit On Screen Recording URL option, the %VERSION% placeholder is not correctly replaced because the plugin cannot know the App Shielding version in the app.
External screen block
For apps that use UISceneDelegate on iOS 13 and later, the on-screen keyboard is not blocked.
Settings for Exit On Screen Recording and Exit On Screen Recording URL lost when changing App Shielding versions
If you enable the configuration options Exit On Screen Recording and Exit On Screen Recording URL, and change the App Shielding versions from 7.0.6 or 7.0.6-a to 7.2.1 or vice-versa, your settings will be lost. To ensure the app is exited and the specified web page with an explanation is launched, you need to re-enable the options as required after you changed versions.
Bypassing App Shielding protection in Cordova-based applications
Description: Because of the nature of pure Javascript frameworks such as Cordova, the effectiveness of the push and pull bindings of App Shielding is affected. As a result, it might be possible to extract all Javascript files from a shielded application and build a new Cordova-based application with the extracted Javascript files. That new application will behave identical to the original one but has two major differences:
It is not longer protected with App Shielding.
It is signed with a different developer certificate.
Because this new application is signed with a different developer certificate, it is recognized by the stores or every device as a completely different and new application in comparison to the original shielded application. It cannot be avoided that a new application like this is built that looks and behaves similar to the original application.
OneSpan risk assessment: Threat actors will need to make heavy use of targeted phishing attacks to convince users of the original application to install the rogue version. For attackers, however, it is much easier to use existing malware frameworks that mimic hundreds of login screens in one single piece of malware. In addition, the existence of any rogue versions of the application does not affect the security features of the original shielded application. Everyone who is using the genuine, shielded application is protected with all the features of App Shielding, including all security measures of the original application. Therefore, we consider this issue to be of low risk.
Xcode marks ShieldSDK.xcframework package as not signed/verified
Xcode marks the ShieldSDK.xcframework package as not signed or verified and might move it to quarantine mode. If Xcode displays a message like ShieldSDK.xcframework cannot be opened..., follow these steps to resolve it:
Select Cancel.
Open the macOS System Settings.
Navigate to Privacy & Security.
Scroll down to the security warning and select Allow Anyway.
This will be fixed as soon as possible.
App protection fails with Xcode 26 and enhanced security option enabled
If your app was compiled with Xcode 26, and the Enable Enhanced Security option was set to Yes, the Shielding Tool will fail to protect the app.
This option is not enabled by default, and a future release of the Shielding Tool will improve the compatibility.
[Applicable to Premium Features only] App terminates unexpectedly
For Code Obfuscation: if you are using OneSpan Code Obfuscation, you might encounter unexpected terminations or other issues with apps that programmatically read information at the beginning of virtual space, such as the Mach-O header.
[Applicable to Premium Features only] dSYM file names
For Code Obfuscation: when shielding with native obfuscation, ensure that the names of the dSYM zip file package uploaded to the OneSpan Mobile Portal and the name of the dSYM file inside the zip file package are identical. Otherwise, the shielding operation will fail!
Other notices
Xcode warning for missing dSYM file
Xcode 16 introduced a new warning when it discovers a missing dSYM file. For example:
Upload Symbols Failed
The archive did not include a dSYM for the MyAppx.framework with the UUIDs [XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX]. Ensure that the archive's dSYM folder includes a DWARF file for MyAppx.framework with the expected UUIDs.
The warning can safely be ignored, as it relates to missing symbols for the App Shielding dynamic library. App Shielding is a proprietary SDK, and OneSpan has never shared debug symbols for the library, which is the same for most proprietary/closed source libraries.
Bootstrap detection
As a side effect of recent jailbreak detection improvements, App Shielding can also detect Bootstrap even when the protected app itself has not been bootstrapped.