Bundling
What goes in the app bundle, per-product settings, capabilities, cef doctor and troubleshooting.
swift package --allow-writing-to-package-directory --allow-network-connections all \
cef doctor dist/MyApp.app
Per-product settings
A cefapp.json beside the sources of the product’s executable target (the
target, whatever its name, that the product’s targets names) sets what the command-line
options override. It may contain comments and trailing commas (JSON5).
Paths in it are relative to its directory. An unknown key is an error, so
a misspelled key does not go unnoticed.
{
"bundleIdentifier": "com.example.browser",
"displayName": "Example Browser",
"version": "2.1",
"build": "214",
"minimumSystemVersion": "15.0",
"capabilities": ["camera", "microphone", "passkeys", "defaultBrowser"],
"usageDescriptions": {
"camera": "Websites you allow can use the camera.",
"microphone": "Websites you allow can use the microphone.",
"bluetooth": "Your phone can sign you in with a passkey."
},
"infoPlist": { "LSApplicationCategoryType": "public.app-category.productivity" },
"entitlements": "Browser.entitlements",
"helperEntitlements": { "renderer": "Renderer.entitlements" },
"signingIdentity": "Developer ID Application: Example Corp (A1B2C3D4E5)",
"provisioningProfile": "Browser_Developer_ID.provisionprofile",
"notarization": { "keychainProfile": "notary", "format": "zip" }
}
| Key | Default | Meaning |
|---|---|---|
bundleIdentifier, displayName, version, build |
com.cefswift.<name>, the product name, 1.0, 1 |
As the options of the same names. |
minimumSystemVersion |
The product’s deployment target, else 14.0 |
LSMinimumSystemVersion. |
signingIdentity, teamIdentifier, signingKeychain |
Detected | As --sign, --team-id, --keychain. |
hardenedRuntime, timestamp |
By identity | As --[no-]hardened-runtime, --[no-]timestamp. |
capabilities |
None | Features to enable. |
usageDescriptions |
None | The sentence macOS shows when it asks the user, by capability name. |
infoPlist |
None | Keys merged into the app’s Info.plist. |
entitlements |
None | The app’s entitlements file. |
helperEntitlements |
None | Entitlements files merged over a helper’s built-in ones, by helper: helper, alerts, gpu, plugin, renderer. A key set to false removes a built-in one. |
provisioningProfile |
None | The profile to embed. |
notarization.keychainProfile, notarization.format |
None, zip |
Defaults of cef notarize and bundle --notarize. |
cef.localizations |
"application" |
Which of Chromium’s locale packs the app keeps: "application", "all", or a list of localizations. As --localizations. See Locale packs. |
cef.softwareGPUFallback |
"include" |
"exclude" leaves out SwiftShader. As --software-gpu-fallback. See Software GPU fallback. |
architectures |
The build machine’s | ["arm64"], ["x86_64"], ["universal"] or ["arm64", "x86_64"]. As --architectures. See Architectures. |
extensions |
None | Chrome extensions the app ships, .crx packages or unpacked directories, copied into Contents/Resources/Extensions and checked by cef doctor. The app installs them with CefRuntime.Configuration.extensions; see the guide’s Extensions. |
An Xcode target takes these from its build settings instead, or reads a
cefapp.json named by CEF_APP_CONFIG: see Settings.
If you keep cefapp.json and entitlements files in the target’s directory,
exclude them in Package.swift (exclude: ["cefapp.json", "MyApp.entitlements"]), as the examples do, so SwiftPM does not warn about
unhandled files. The Browser example’s
cefapp.json uses most keys, and
its Browser-Distribution.entitlements is a template for a team-signed
build.
What bundle puts in the app
bundle collects what the SwiftPM build of the product produced:
- The executable.
- The resource bundle of each target the product is built from, its
dependencies’ targets included, that declares resources:
<Package>_<Target>.bundle, the bundleBundle.moduleloads, CefKit’s and CefPasskeys’ (the built-in sheets’ strings) among them. They go inContents/Resources/(Bundle.main.resourceURL), where CefSwift’s targets look, as does theBundle.modulethat Xcode and SwiftPM’s Swift Build system generate. A missing one is an error. TheBundle.moduleof SwiftPM’s older native build system, Swift 6.1’s default, looks in the app’s root directory instead, where code signing allows no files, and then in the build directory: on the Mac that built the app it works, elsewhere it stops the app. A target of your own that loads resources and is built that way should look inBundle.main.resourceURLfirst, as CefSwift’s and the examples’ do;cef doctorwarns when the app’s binaries have thatBundle.module. - Each dynamic library and framework the executable loads through
@rpathfrom the build directory, such as a.dynamiclibrary product of a dependency, and the ones those load. They go inContents/Frameworks/. The Swift runtime and the system’s libraries are part of macOS and are not copied.
A framework can hold programs of its own: Sparkle’s has Autoupdate,
Updater.app and two XPC services. bundle signs each of them with the
app’s identity, hardened runtime and timestamp, inside out and keeping the
entitlements each was signed with (less com.apple.application-identifier,
which only a provisioning profile could grant), before it signs the framework
(codesign --deep would drop those entitlements). See
Shipping updates with Sparkle.
The build links executables with run paths into the build directory and
the toolchain. bundle removes each absolute run path outside /usr/lib
and /System from the binaries it copies, and adds
@executable_path/../Frameworks to the app’s executable, so the app loads
its libraries from the bundle on every Mac, the build machine included.
Every Mach-O file in the bundle must have each of the product’s
architectures.
bundle assembles the app in a staging directory beside the destination,
signs it there, and only then replaces <Name>.app. A build that fails
leaves the previous app as it was. cef doctor lists the app’s libraries
and resource bundles and reports code that loads or searches for
libraries outside the bundle.
What bundle leaves out of the framework
The framework’s binary is 226 MiB of the 333 MiB a bundle with every part
of the framework takes. Of the rest, bundle can leave out two parts that
an app may not need. It removes them from the copy in the bundle, before
signing; the shared cache in .cef/ keeps everything.
| Part | Size | Default |
|---|---|---|
| Locale packs for languages the app is not localized in (55 packs, 0.6 to 1.5 MiB each) | 48.9 MiB for an English-only app | Left out |
SwiftShader (libvk_swiftshader.dylib, libvulkan.dylib, vk_swiftshader_icd.json) |
16.1 MiB | Kept |
Measured with the Minimal example (English only), CEF 156.0.28 arm64, logical size:
| Bundle | Size |
|---|---|
--localizations all |
333.0 MiB |
Default (application: en only) |
284.0 MiB |
Default and --software-gpu-fallback exclude |
268.0 MiB |
The rest stays: resources.pak and the two chrome_*_percent.pak files
hold resources every runtime style loads (DevTools’ frontend among them,
4.5 MiB, with no separate file to drop); icudtl.dat is the Unicode and
locale data behind text segmentation, collation and Intl; the V8
snapshot is what renderers start from; libcef_sandbox.dylib seals the
helpers’ sandbox. cef doctor reports what a bundle contains (see
cef doctor).
Locale packs
Chromium’s interface strings come in one pack per locale,
Resources/<locale>.lproj/locale.pak, with three small grammatical-gender
variants beside each. With "localizations": "application", the default,
bundle keeps the packs for:
- each localization in the app’s
CFBundleLocalizations, fromcefapp.json’sinfoPlist. When the Info.plist does not set it and the app’s resource bundles are localized (.lprojdirectories, as a String Catalog produces),bundlesetsCFBundleLocalizationsto their localizations, so that macOS picks the app’s language from them. CefSwift’s own bundles do not count: their languages are not the app’s; - the development language,
CFBundleDevelopmentRegion(en); - English, Chromium’s last fallback.
Localizations map onto packs as CefRuntime.Localization resolves them at run
time, so the runtime only asks for packs the bundle has: fr-CA keeps
fr, pt keeps pt_BR, zh-Hant keeps zh_TW, en-AU keeps en_GB.
bundle warns about a localization Chromium has no pack for (ga, eu,
…); Chromium’s interface uses the development language there.
{
"infoPlist": { "CFBundleLocalizations": ["en", "fr", "de", "pt-BR"] },
"cef": { "localizations": "application" }
}
"all" keeps every pack, for a browser whose users pick any interface
language. A list, such as ["en", "ja"], keeps those packs, the
development language’s and English, whatever the app declares.
--localizations application|all|en,ja overrides cefapp.json.
Software GPU fallback
SwiftShader is Chromium’s software implementation of Vulkan, which ANGLE
can run WebGL on without a GPU. In CEF 156 Chromium uses it only when told
to (--use-angle=swiftshader or --enable-unsafe-swiftshader); it does not
fall back to it by itself. Measured with SelfTest on an M3:
| Bundle, switches | Pages render, windowed and offscreen | WebGL |
|---|---|---|
| With SwiftShader | Yes | ANGLE on Metal |
With SwiftShader, --disable-gpu |
Yes, composited on the CPU | None |
With SwiftShader, --disable-gpu --enable-unsafe-swiftshader |
Yes | ANGLE on SwiftShader |
| Without SwiftShader | Yes | ANGLE on Metal |
Without SwiftShader, --disable-gpu (with or without --enable-unsafe-swiftshader) |
Yes | None |
"softwareGPUFallback": "exclude" (or --software-gpu-fallback exclude)
saves 16.1 MiB and removes WebGL only where an app asks for SwiftShader,
typically for a GPU-less virtual machine or a CI runner. Accelerated
offscreen frames (IOSurfaces) need the GPU either way.
Bundle anatomy
MyApp.app/
└── Contents/
├── Info.plist
├── PkgInfo
├── embedded.provisionprofile # when provisioningProfile is set
├── MacOS/
│ └── MyApp # your product
├── Resources/
│ ├── MyApp_MyApp.bundle # each target's resources (Bundle.module)
│ └── CefSwift_CefKit.bundle # the built-in sheets' strings
├── XPCServices/
│ ├── MyApp Media.xpc # with the systemMediaDecoders capability
│ └── MyApp FairPlay.xpc # with the fairPlay capability
└── Frameworks/
├── libMyLibrary.dylib # dynamic libraries the product loads
├── libcefswift_helper_startup.dylib # seals the helpers' sandbox
├── Chromium Embedded Framework.framework/
│ ├── Versions/
│ │ ├── A/
│ │ │ ├── Chromium Embedded Framework # the library itself
│ │ │ ├── Resources/ # .pak files, locales, icudtl.dat
│ │ │ └── Libraries/ # SwiftShader, Vulkan, libcef_sandbox.dylib
│ │ └── Current -> A
│ ├── Chromium Embedded Framework -> Versions/Current/Chromium Embedded Framework
│ ├── Libraries -> Versions/Current/Libraries
│ └── Resources -> Versions/Current/Resources
├── MyApp Helper.app
├── MyApp Helper (Alerts).app
├── MyApp Helper (GPU).app
├── MyApp Helper (Plugin).app
└── MyApp Helper (Renderer).app
Helper apps
Chromium runs renderers, the GPU process, plugins and notification
(“alerts”) services as separate processes. The Alerts helper runs only
when the app turns system notifications on
(services.systemNotifications); it is
bundled either way. On macOS each process type is an
app of its own, with its own bundle identifier and Info.plist. All five
contain the same binary, copied and renamed.
That binary is CefSwift’s cefswift-helper product, a Swift executable
(Sources/CefHelper) with no code of the app’s, which both tracks build
with SwiftPM, together with the cefswift_helper_startup library. The
helper links libcefswift_helper_startup.dylib and then the framework, so
dyld loads both at launch (HelperLink.swift has the linker flags), and
cef bundle builds the app product with a weak link to the framework
(-weak_framework). Libraries loaded at launch keep the framework’s 12 MB
of fixed-up pointers as shared, clean memory in every process; see
architecture. An app
executable without the link, as an Xcode target’s is, runs as well, since
CefKit loads the framework with dlopen if dyld has not, but that process
then holds the 12 MB privately.
The names matter. Chromium derives helper paths from the main executable’s
name, so each helper executable is named <executable> Helper or
<executable> Helper (<Type>) and sits in the main app’s
Contents/Frameworks/. Bundle identifiers follow the same pattern:
| Helper | Bundle identifier |
|---|---|
MyApp Helper.app |
<bundle ID>.helper |
MyApp Helper (Alerts).app |
<bundle ID>.helper.alerts |
MyApp Helper (GPU).app |
<bundle ID>.helper.gpu |
MyApp Helper (Plugin).app |
<bundle ID>.helper.plugin |
MyApp Helper (Renderer).app |
<bundle ID>.helper.renderer |
Versioned framework layout
CEF distributions ship the framework in a flat layout. Code signing and the
Xcode 26 toolchain expect the versioned layout: Versions/A/ with
top-level symlinks. cef download converts the framework in place, so every
later step sees a well-formed framework.
Info.plist
The main app’s Info.plist includes:
| Key | Value | Why |
|---|---|---|
LSEnvironment |
{ MallocNanoZone = "0" } |
Chromium’s allocator does not work with the nano malloc zone; without it the app can crash inside CEF. |
NSPrincipalClass |
NSApplication |
CefSwift creates its CefApplication subclass at launch, before anything else uses NSApp. |
LSMinimumSystemVersion |
minimumSystemVersion, else the product’s deployment target |
The package’s minimum. |
NSHighResolutionCapable |
true |
Retina rendering. |
NSSupportsAutomaticGraphicsSwitching |
true |
Lets Macs with two GPUs use the integrated one. |
The keys of each capability, infoPlist and each --info-plist file are
merged over these, in that order: dictionaries key by key, arrays without
repeating an element, other values replaced. CFBundleExecutable,
CFBundleIdentifier, CFBundlePackageType, CFBundleShortVersionString,
CFBundleVersion and LSMinimumSystemVersion come from their own settings,
and setting them there is an error.
Each helper’s Info.plist adds:
| Key | Value | Why |
|---|---|---|
LSUIElement |
true |
Helpers never appear in the Dock or the app switcher. |
LSFileQuarantineEnabled |
true |
Files that helper processes write are quarantined, as in other browsers. |
Every NS…UsageDescription of the app |
The app’s | In case macOS attributes an access to the helper. |
NSUserNotificationAlertStyle (Alerts helper) |
alert |
As in Chromium’s helper-alerts-Info.plist. |
Features
Each capability adds what its feature needs. Usage descriptions come from
usageDescriptions, by capability name, or from the same keys in
infoPlist; a capability without one is an error, except passkeys.
| Capability | Info.plist | Entitlements (hardened runtime) | Granted by | Notes |
|---|---|---|---|---|
camera |
NSCameraUsageDescription |
com.apple.security.device.camera (app, base helper) |
Any signature | getUserMedia video. |
microphone |
NSMicrophoneUsageDescription |
com.apple.security.device.audio-input (app, base helper) |
Any signature | getUserMedia audio, speech input. |
location |
NSLocationUsageDescription |
com.apple.security.personal-information.location |
Any signature | The Geolocation API, through Core Location. |
bluetooth |
NSBluetoothAlwaysUsageDescription |
com.apple.security.device.bluetooth |
Any signature | Web Bluetooth, and phones as passkeys. Chromium uses Bluetooth only when the responsible app’s Info.plist has the key, so launch the app from Finder or open, not from a terminal that would be responsible for it. |
usb |
None | com.apple.security.device.usb |
Any signature | WebUSB. WebHID and Web Serial need no entitlement outside the App Sandbox. |
localNetwork |
NSLocalNetworkUsageDescription, NSBonjourServices (_googlecast._tcp) |
None | Any signature | Local network privacy (macOS 15 and later) applies to Cast discovery and to pages reaching local addresses. |
appleEvents |
NSAppleEventsUsageDescription |
com.apple.security.automation.apple-events |
Any signature | Sending Apple Events to other apps. |
passkeys |
NSWebBrowserPublicKeyCredentialUsageDescription (optional); includes bluetooth |
com.apple.developer.web-browser.public-key-credential (restricted) |
Apple, on request, to web browsers; in a provisioning profile | iCloud Keychain passkeys through AuthenticationServices. Request it from Apple with the passkey entitlement request form; Apple then enables it for the App ID as a managed capability. |
defaultBrowser |
CFBundleURLTypes (http, https), CFBundleDocumentTypes (public.html, public.xhtml) |
None | Any signature | The app can be chosen as the default browser, and can ask with NSWorkspace.setDefaultApplication(at:toOpenURLsWithScheme:). com.apple.developer.web-browser is an iOS entitlement; macOS needs none. |
handoff |
NSUserActivityTypes (NSUserActivityTypeBrowsingWeb) |
None | Any signature | Handoff of web pages. |
fairPlay |
None | com.apple.security.app-sandbox and com.apple.security.network.client, and nothing else, on Contents/XPCServices/<App> FairPlay.xpc (bundle identifier <app>.fairplay), CefSwift’s FairPlay service (cefswift-fairplay) |
Any signature | FairPlay Streaming audio in Chromium pages of the origins an app lists with CefProtectedMedia’s CefFairPlay. The service fetches the stream’s segments itself, hence the network entitlement. See FairPlay in Chromium pages. |
systemMediaDecoders |
None | com.apple.security.app-sandbox, and nothing else, on Contents/XPCServices/<App> Media.xpc (bundle identifier <app>.media), CefSwift’s media service (cefswift-media), which the plugin and the Xcode build phase build when the capability is listed |
Any signature | AAC, AC-3, E-AC-3 and Apple Lossless audio in pages with CefRuntime.Configuration.services.systemMediaDecoders = .audio, decoded in the service rather than the app’s process. See System media decoders. |
protectedMedia |
None | com.apple.security.cs.disable-library-validation (base helper) |
Any signature | Lets a team-signed, hardened helper load Google’s Widevine CDM, which Chromium downloads when CefRuntime.Configuration.services.protectedMedia is .automatic. Ad hoc builds without the hardened runtime load it without the capability. It does not give the app Verified Media Path: see Playing streaming services. |
Under the hardened runtime, a missing resource entitlement makes the access fail silently; without it, the entitlements are not enforced. The usage description is needed either way: without it macOS ends the process that asks.
Other features:
| Feature | Needs |
|---|---|
Safe storage in the keychain (keychainItem, by default “ |
A team signature: .automatic picks the keychain then. Ad hoc builds use --use-mock-keychain. See Keychain access. |
| Chromium’s profile passkeys with Touch ID | Not available with CEF 158: Chromium checks for the keychain access group .org.chromium.Chromium.webauthn, compiled in from Chromium’s branding with an empty team identifier, and a provisioning profile authorizes only groups that start with a team identifier. CefPasskeys’ CefPasskeyController with .app(CefKeychainPasskeyStore()) verifies the user with Touch ID instead. |
CefKeychainPasskeyStore (CefPasskeys) |
A team signature with a provisioning profile, which gives the app the com.apple.application-identifier entitlement the data protection keychain needs. Ad hoc builds get errSecMissingEntitlement (-34018). |
Screen sharing (getDisplayMedia) |
Nothing in the bundle; macOS asks the user for Screen Recording permission. |
| Notifications | Nothing: by default Chromium shows pages’ notifications in its own popups and never asks macOS. With services.systemNotifications = .automatic, macOS asks the user at the first launch, for the app and for the Alerts helper, which gets NSUserNotificationAlertStyle. See System notifications. |
NSAppTransportSecurity |
Nothing: Chromium does its own networking, which App Transport Security does not cover. |
FairPlay in a WKWebView beside Chromium (the Browser example’s WebKit tabs) |
Nothing: no entitlement, capability or team signature. |
| Widevine Verified Media Path | Not available with stock CEF: CEF 156 gives the CDM no host binary to verify, so no signature of yours is checked. See Playing streaming services. |
cef doctor
swift package --allow-writing-to-package-directory --allow-network-connections all \
cef doctor dist/MyApp.app [--json]
For an app built any other way, such as an Xcode archive’s export, the
cefswift tool takes the same arguments: cefswift doctor MyApp.app
(swift run --package-path <CefSwift> cefswift doctor …, or the copy the
Xcode phase built in $(OBJROOT)/CefSwift). The Xcode phase runs the checks
of the helpers, framework, linking and features on every build.
It reads the bundle with codesign, security, spctl, stapler and
xattr, and prints:
- the signature (ad hoc, Apple Development, Developer ID), the team, the hardened runtime and the secure timestamp;
- each helper’s signature and entitlements, and whether the framework, its libraries, and the app’s own libraries and resource bundles are signed like the app;
- linking: the app’s libraries and resource bundles, and an error for code without the app’s architecture, or that loads or searches for libraries outside the bundle (it would run on the build machine and fail on others);
- the embedded profile and its checks;
- Gatekeeper’s verdict, the stapled ticket and the quarantine attribute;
- per feature, whether it works and what is missing; the safe-storage
policy
.automaticpicks; the passkey authenticators Chromium can offer; whether the base helper can load the Widevine CDM; and that the build has no Verified Media Path, so services that require it refuse Widevine playback. Whether Chromium has downloaded the CDM is known only at run time (CefRuntime.shared.widevine); - the footprint: the bundle’s logical size, with the framework binary, its resources and the helpers; the locale packs it keeps and the pack each of the app’s localizations gets, with a warning for one that gets none and the size of packs no localization uses; and whether SwiftShader is in it.
It exits non-zero when it finds an error, something that stops the app from
launching, from loading a part, or from passing notarization. --json
prints the same report as JSON, with errors and warnings counts.
In SwiftPM’s plugin sandbox spctl cannot assess apps; the report says so
and the Gatekeeper line is informational. Run spctl --assess --type execute -vv <App.app> in Terminal for that verdict.
For an ad hoc bundle with the hardened runtime, the summary reads:
SelfTest.app (dev.rajaniraiyn.cefswift.selftest)
signature: ad hoc, hardened runtime
safe storage: mock keychain
passkeys: security keys (USB/NFC)
At run time, CefRuntime.shared.capabilities (CefAppCapabilities) answers
the same questions from the running app’s signature, and CefSwift logs one
line at start-up naming what the signature leaves out. See
the guide.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
The app dies at launch with SIGKILL (Code Signature Invalid); the log shows taskgated-helper … Unsatisfied entitlements or AMFI |
A restricted entitlement no embedded profile authorizes, or a profile that does not match the bundle | cef doctor; embed a matching profile, or drop the entitlement. cef bundle refuses these combinations. |
errSecMissingEntitlement (-34018) from the keychain |
The data protection keychain without com.apple.application-identifier, as in ad hoc builds |
Sign with a team identity and a profile. |
CefError.loadFailed or a helper exit with code signature … not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs |
Library validation: a library signed by another team, ad hoc under a team signature, or any library under a team-less signature with the hardened runtime | Bundle again with cef bundle; cef doctor names the part. |
| Renderers crash at start under the hardened runtime | The renderer helper lacks allow-jit |
Keep the built-in helper entitlements; cef doctor flags it. |
| “MyApp is damaged” or “cannot be opened” on another Mac | The download is quarantined and the app is not notarized | Notarize. For a test only: xattr -dr com.apple.quarantine MyApp.app. |
Notarization Invalid |
Missing hardened runtime or timestamp, get-task-allow, or an unsigned nested binary |
cef notarize prints the notary log; cef doctor names the part. |
| Camera, microphone or location requests fail without a prompt | A missing usage description or, under the hardened runtime, entitlement | Add the capability. |
| Phones are not offered as passkeys | No NSBluetoothAlwaysUsageDescription, or the app was started from a terminal, which becomes the responsible process |
Add bluetooth; launch with open. |
CefError.frameworkNotFound when the app starts |
The app runs without the framework and helpers: swift run, .build/…, or an Xcode target without the CefSwift phase |
Run the bundle from cef bundle, or add the phase (Xcode). |
The app stops at launch with bootstrap_check_in …MachPortRendezvousServer…: Permission denied (1100) |
The App Sandbox | Remove App Sandbox; both tracks refuse it (App Sandbox). |
Xcode: Sandbox: … deny(1) file-read-data … or deny(1) file-write-create … in the CefSwift phase |
User Script Sandboxing | ENABLE_USER_SCRIPT_SANDBOXING = NO for the target. |
Xcode: …/xcode-embed.sh: No such file or directory |
CEFSWIFT_PACKAGE_DIR does not point at the package |
Set it: $(BUILD_DIR)/../../SourcePackages/checkouts/CefSwift for a remote package, the path of a local one; with xcodebuild -clonedSourcePackagesDirPath <dir>, <dir>/checkouts/CefSwift. |
| A universal build downloads CEF twice the first time | It needs each architecture’s distribution | Expected; build for one architecture (ARCHS = $(NATIVE_ARCH_ACTUAL), no --architectures) until you ship (Architectures). |
| Xcode: “The app lacks the entitlement com.apple.security.cs.disable-library-validation” | A Release build signed ad hoc keeps the hardened runtime | Sign with a team, or set RUNTIME_EXCEPTION_DISABLE_LIBRARY_VALIDATION = YES until then (Signing in Xcode). |
dyld: Library not loaded: @rpath/MyApp.debug.dylib … different Team IDs |
An ad hoc, hardened Debug build (hardened runtime forced on) | As above, or leave ENABLE_HARDENED_RUNTIME to Xcode for ad hoc Debug builds. |
Without Xcode: external macro implementation type 'SwiftUIMacros.StateMacro' could not be found for macro 'State()' (or EntryMacro, PreviewMacro) |
SwiftUI macros, whose plugin only Xcode ships; the tools’ macOS 27 SDK makes @State one |
SDKROOT=…/MacOSX26.sdk, or the ViewState alias; EnvironmentKey for @Entry (Without Xcode). |
A SwiftUI preview of a view with a CefWebView shows a globe |
Previews cannot start Chromium | Expected: run the app to see the page (Debugging and previews). |
Flavors
| Flavor | Contents | Download (arm64 / x86_64) |
|---|---|---|
minimal |
The Release framework | About 135 MB / 142 MB |
standard |
Release and Debug builds | About 312 MB / 361 MB |
Bundles always contain the Release framework. standard is useful only when
you need CEF’s Debug build from .cef/dist/.