I'm trying to create a XCFramework for a static library that was handed over to us from a vendor (we have C sources and compile it ourselves) that doesn't include Bitcode when checking with otool -l <static_library>.a | grep __LLVM.
Apparently bitcode is stripped by libtool despite using -fembed-bitcode CFLAGS and LDFLAGS. xcodebuild -create-xcframework is failing with the error message:
error: unable to find any architecture information in the binary at '<static_library>.a': Unknown header: 0xb17c0de
0xb17c0de seems like a shorthand for "bitcode" according to posts I've found.
I understand why this fails on Xcode 13 and prior due to the Bitcode requirement, but I'm trying to use Xcode 14 RC to do the same and get the same error message despite Apple now dropping Bitcode support in Xcode 14.
Is there an option I can give xcodebuild -create-xcframework to ignore this bitcode requirement and why is it still a requirement in Xcode 14?
Can I add a bitcode marker after compilation to the .a file to satisfy xcodebuild with some fancy command?
My alternative is to figure out how to get libtool not to drop the bitcode flags, but that seems like working backwards in time and will take me much longer to figure out given the unfamiliar compile setup (automake, cmake, etc.).
Post
Replies
Boosts
Views
Activity
Previous version of Xcode (13 and earlier) had an option in Edit Scheme | Run | Options called "Background Fetch Launch due to a background fetch event".
It seems to have disappeared in Xcode 14 - how to test launching of the app due a background event now?
I'm attempting to run my iPhone app on the visionOS simulator, but I'm met with this error:
Domain: FBSOpenApplicationServiceErrorDomain
Code: 1
Failure Reason: The request was denied by service delegate (SFBSystemService).
User Info: {
BSErrorCodeDescription = RequestDenied;
DVTErrorCreationDateKey = "2023-06-23 10:16:55 +0000";
FBSOpenApplicationRequestID = 0xeb18;
IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
SimCallingSelector = "launchApplicationWithID:options:pid:error:";
}
--
The request to open "xxxxxxxx" failed.
Domain: FBSOpenApplicationServiceErrorDomain
Code: 1
Failure Reason: The request was denied by service delegate (SFBSystemService).
User Info: {
BSErrorCodeDescription = RequestDenied;
FBSOpenApplicationRequestID = 0xeb18;
}
--
The request cannot be completed as the system is locked.
Domain: SFBSurfBoardErrorDomain
Code: 110
User Info: {
NSDebugDescription = "The request cannot be completed as the system is locked.";
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "RealityDevice14,1";
"device_osBuild" = "1.0 (21N5165g)";
"device_platform" = "com.apple.platform.xrsimulator";
"dvt_coredevice_version" = "325.3";
"dvt_mobiledevice_version" = "1643.0.15.100.1";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 6606;
"operation_errorCode" = 1;
"operation_errorDomain" = FBSOpenApplicationServiceErrorDomain;
"operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
"operation_name" = IDERunOperationWorkerGroup;
"param_consoleMode" = 0;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 0;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.xrsimulator";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 1;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 0;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 0;
"param_launcher_substyle" = 0;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphonesimulator17.0";
"sdk_osVersion" = "17.0";
"sdk_variant" = iphonesimulator;
}
--
System Information
macOS Version 13.4 (Build 22F66)
Xcode 15.0 (22181.22) (Build 15A5161b)
Timestamp: 2023-06-23T12:16:55+02:00
Any ideas?
Is it possible to access "From my mac" photos/PHAssetCollection through PhotoKit in iOS?
"From my mac" photos/videos are media synced from a mac where iCloud Photos are turned off on the iOS device, like what we did in the ole' days before iCloud Photos.
I have set up an iOS device with "From my mac" albums present in Photos.app, but in my own app I don't seem to be able to access those collections/photos through PhotoKit using all the defined PHAssetCollectionTypes.
Are these directly synced photos simply not available through PhotoKit and you would have to revert to the deprecated ALAssetLibrary?