Frameworks

RSS for tag

Ask questions about APIs that can drive features in your apps.

Frameworks Documentation

Pinned Posts

Posts under Frameworks tag

211 Posts
Sort by:
Post not yet marked as solved
2 Replies
213 Views
I am trying to use UICollectionViewCompositionalLayout and would like to add a sticky global header to the whole collection view. As far as I understand the documentation, this can be done via the UICollectionViewCompositionalLayoutConfiguration by adding a boundarySupplementaryItem and by setting pinToVisibleBounds to true. I tried this and used the following layout: let layout = UICollectionViewCompositionalLayout.list( using: .init(appearance: .plain) ) let supplementary = NSCollectionLayoutBoundarySupplementaryItem(     layoutSize: .init( widthDimension: .fractionalWidth(1), heightDimension: .absolute(50) ),         elementKind: UICollectionView.elementKindSectionHeader,         alignment: .top ) let configuration = UICollectionViewCompositionalLayoutConfiguration()     supplementary.pinToVisibleBounds = true     configuration.boundarySupplementaryItems = [supplementary]     layout.configuration = configuration This works just fine, but if there are no items in the collection view and I scroll the content (and especially the global header) out of the viewport, I encounter a weird crash which I am not sure how to fix or if I can fix it. The crash is: 2022-06-13 14:20:57.001033+0200 CompositonalLayoutGlobalHeaderCrash[79529:2256455] *** Assertion failure in CGRect _UIPinnedFrameForFrameWithContainerFrameVisibleFrame(CGRect, CGRect, CGRect, NSRectAlignment)(), _UICollectionLayoutHelpers.m:733 2022-06-13 14:20:57.012169+0200 CompositonalLayoutGlobalHeaderCrash[79529:2256455] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Frame {{0, 50}, {375, 0}} does not intersect {{0, 50}, {375, 0}}' For me it seems like there is a assertion in the layout which checks that the global header does not leave the frame of the collection views content. Is this a bug of UICompositionalLayout or is there someone who can help fixing this?
Posted Last updated
.
Post not yet marked as solved
1 Replies
197 Views
I have an iOS project that was created a couple Xcode versions ago bundling some XCFrameworks. As of recently (still with Xcode 13.4.1 (13F100)) the app won't launch anymore on actual devices with the dreaded Unable to install "XYZ" error. I have several other projects using one or other of the XCFrameworks, all using the same team and code signing options, and in any of the other apps still work fine on my test device. I've compared settings between the apps that launch and the one that doesn't but I can't spot any difference that could cause an issue.. Is there any way to track down the specific problem with this app? This is the detailed output when launching on device fails: Unable to install "XYZ" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: { DVTErrorCreationDateKey = "2022-06-10 12:22:19 +0000"; IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; } -- The code signature version is no longer supported. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: { DVTRadarComponentKey = 261622; MobileDeviceErrorCode = "(0xE8008029)"; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000011e5a1614 DTDKCreateNSErrorFromAMDErrorCode + 272 1 DTDeviceKitBase 0x000000011e5dadd8 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 160 2 DVTFoundation 0x0000000103c39bd0 DVTInvokeWithStrongOwnership + 76 3 DTDeviceKitBase 0x000000011e5dab30 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1336 4 IDEiOSSupportCore 0x000000011e4b9590 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 2916 5 DVTFoundation 0x0000000103d60f50 __DVT_CALLING_CLIENT_BLOCK__ + 16 6 DVTFoundation 0x0000000103d62068 __DVTDispatchAsync_block_invoke + 364 7 libdispatch.dylib 0x00000001891d65f0 _dispatch_call_block_and_release + 32 8 libdispatch.dylib 0x00000001891d81b4 _dispatch_client_callout + 20 9 libdispatch.dylib 0x00000001891df8a8 _dispatch_lane_serial_drain + 668 10 libdispatch.dylib 0x00000001891e0404 _dispatch_lane_invoke + 392 11 libdispatch.dylib 0x00000001891eac98 _dispatch_workloop_worker_thread + 648 12 libsystem_pthread.dylib 0x0000000189398360 _pthread_wqthread + 288 13 libsystem_pthread.dylib 0x0000000189397080 start_wqthread + 8 ); } Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPad12,1"; "device_osBuild" = "15.5 (19F77)"; "device_platform" = "com.apple.platform.iphoneos"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 1993; "operation_errorCode" = "-402620375"; "operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain"; "operation_errorWorker" = IDEInstalliPhoneLauncher; "operation_name" = IDEiPhoneRunOperationWorkerGroup; "param_consoleMode" = 0; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 5; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphoneos"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_queueDebugging_enable" = 1; "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_runnable_swiftVersion" = "5.6.1"; "param_runnable_type" = 2; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphoneos15.5"; "sdk_osVersion" = "15.5"; "sdk_variant" = iphoneos; } -- System Information macOS Version 12.4 (Build 21F79) Xcode 13.4.1 (20504) (Build 13F100) And this is the output of codesign on the app: Executable=/Users/***/Library/Developer/Xcode/DerivedData/XYZ-bdjavnfzlagnjzdlfbdbfimpdxdp/Build/Products/Debug-iphoneos/XYZ.app/XYZ Identifier=com.*** Format=app bundle with Mach-O thin (arm64) CodeDirectory v=20400 size=163181 flags=0x0(none) hashes=5088+7 location=embedded Signature size=4787 Signed Time=10. Jun 2022 at 14:17:36 Info.plist entries=36 TeamIdentifier=L***T Sealed Resources version=2 rules=10 files=76 Internal requirements count=1 size=208 The page size indicates the app has DER entitlements (as per https://developer.apple.com/documentation/xcode/using-the-latest-code-signature-format): Page size=4096 -7=a2b7cb9fa9a8e60cacfd73d1830ea5bbab35c8213e0abd86c14233ac1aaf9b90 -6=0000000000000000000000000000000000000000000000000000000000000000 -5=8680ba1b7e8bf98de928906c8d4e1a88e836b7d1aa33a40ee0e079513fc9ee04 -4=0000000000000000000000000000000000000000000000000000000000000000 -3=1a6c79ee253b6b0720c630f094054b9dbf8e4adbcf4d169b3f8b291bb5c377c5 -2=b6a4ad6c366acfe77bc7cb3aeeec40016d45baf36431d07e130d429bebffd891 Any hints appreciated. Cheers, Jay
Posted
by JayMcBee.
Last updated
.
Post not yet marked as solved
1 Replies
261 Views
Hello Apple Devs, Can some one tell if I can scan RFID tag using the CoreNFC framework? Right now i have a requirement of an iOS app which can scan RFID tag. I have read about CoreNFC framework and know that NFC is a subset of RFID but still requiring clarification on my question. Can anyone from APPLE team kindly and humbly reply to my query? Thanks and regards, Alex
Posted
by AlexBingo.
Last updated
.
Post not yet marked as solved
2 Replies
840 Views
The original Apple ID according to the representative is still “active” however she did hang up in my face when she used my Government name and that name wasn’t initially registered to the original Apple ID.. anyways the restrictions that correspond with a MDM from an apple business management account on my iPhone also the analytics and improvements keep showing activity of another device having access or “remote” capabilities. I copied this portion of some crash reports from the analytics data Heaviest stack for the target process: 10 ??? (libsystempthread.dylib + 6976) [0x1e79aab40] 10 ??? (QuartzCore + 1891396) [0x1a1a14c44] 7 ??? (QuartzCore + 1833980) [0x1a1a06bfc] 7 ??? (CoreFoundation + 635644) [0x19e50a2fc] 7 ??? (CoreFoundation + 631324) [0x19e50921c] 7 ??? (CoreFoundation + 635020) [0x19e50a08c] 7 ??? (CoreFoundation + 660344) [0x19e510378] 7 ??? (CoreFoundation + 663528) [0x19e510fe8] 7 ??? (CoreFoundation + 511440) [0x19e4ebdd0] 7 ??? (QuartzCore + 971636) [0x1a1934374] 7 ??? (QuartzCore + 1833040) [0x1a1a06850] 3 ??? (QuartzCore + 1774248) [0x1a19f82a8] 3 ??? (QuartzCore + 2141416) [0x1a1a51ce8] 2 ??? (QuartzCore + 1043980) [0x1a1945e0c] 2 ??? (Metal + 702968) [0x1b42c39f8] 2 ??? (libdispatch.dylib + 75840) [0x19e197840] 2 ??? (libdispatch.dylib + 15792) [0x19e188db0] 2 ??? (Metal + 703044) [0x1b42c3a44] 2 ??? (Metal + 701656) [0x1b42c34d8] 2 ??? (IOGPU + 23412) [0x1da745b74] 2 ??? (IOGPU + 24252) [0x1da745ebc] 2 ??? (IOGPU + 71780) [0x1da751864] 2 ??? (IOKit + 33612) [0x1a929734c] 2 ??? (IOKit + 531692) [0x1a9310cec] 2 ??? (libsystemkernel.dylib + 17104) [0x1cb46f2d0] Also here’s a log of some activity from a MDMiosagent. If anyone had any answers as to how to remove my account from a MDM (unenroll). My device was added to a management account without my consent or authorization.. and this “crime” needs to be reported immediately. I’ll post that on another question bold
Posted
by laroy0731.
Last updated
.
Post not yet marked as solved
0 Replies
132 Views
Hi, when i used IOServiceOpen(service,mach_task_t,0, &connect) to creat a connection to an IOService, a return code 0xe00002c2 is generated in macos Montery(12.4). but the same program returned Success in macos 11.x. did anyone encounted these issue?
Posted
by xzyhehe.
Last updated
.
Post not yet marked as solved
0 Replies
138 Views
Hey there, many thanks for your time! Goal: Using lib_InternalSyntaxParser.dylib in an app-store compatible build for iOS. Some quick context: swift-syntax Library repo - https://github.com/apple/swift-syntax My reference project - https://github.com/tikimcfee/LookAtThat Updated / standard instructions on manually building dylib - https://github.com/pol-piella/polpiella.dev/blob/4a7b5f6e6b3511d5010da887435f870f84c53d2a/src/pages/embedding-a-dylib-in-a-swift-package.md Issues: x86_64, arm64, iossim all require different architecture builds of lib_InternalSyntaxParser. I cannot embed the dylib generated by the build tool into a app-store capable build (not supported by iOS). macOS dylib with an exported .app is fine so far. Attempting to wrap this with a framework causes signing errors after installation on device. Question: I am looking for guidance on the proper, expected practice for bundling the multiple versions of this dylib (listed above). I was fortunate enough to meet one @Rintaro (hello and thank you again!) at this year's WWDC developer event, and they suggested I pop up my issue here. I am happy to answer questions to help narrow down a solution! I would greatly appreciate an as-detailed-as-is-reasonable explanation of what the expected process of embedding this dylib looks like, and what the specific requirements are for code signature and verification for this use case. A third and final time: many thanks for your time, patience, and assistance.
Posted
by TikiMcFee.
Last updated
.
Post not yet marked as solved
0 Replies
188 Views
I'm trying to build an augmented reality app on my iphone. I made it in unity, and it builds and plays on an android, but crashes immediately on any iphone. I get this in my console in xcode. 2022-06-05 19:23:13.222039-0500 PieceoftheSkyWIP[12433:706015] Error loading /var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/AlgoSdk.framework/AlgoSdk Referenced from: /private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/UnityFramework Reason: tried: ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/System/Library/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file) 2022-06-05 19:23:13.222996-0500 PieceoftheSkyWIP[12433:706015] Error loading /var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/AlgoSdk.framework/AlgoSdk Referenced from: /private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/UnityFramework Reason: tried: ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/UnityFramework.framework/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/private/var/containers/Bundle/Application/4E214C36-6812-4936-951A-153FB4DA4454/PieceoftheSkyWIP.app/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file), ‘/System/Library/Frameworks/AlgoSdk.framework/AlgoSdk’ (no such file) my coworker also tried to build the project on his mac M1 and got an actual error that says something like this - building for ios but the linked and embedded framework was built for ios + ios simulator unity I'm using Unity 2019.4.0 ARFoundation 4.1.1 ARCore 4.1.1 ARKit 4.1.1 Xcode 13.4.1
Posted
by acstahl24.
Last updated
.
Post not yet marked as solved
0 Replies
143 Views
The Rust programming language is currently trying to replace its synchronization primitives with more efficient, statically initializable ones (see tracking issue). This turned out to be difficult on macOS, as it does neither have these primitives by default like Windows (SRWLock is really efficient and works with condition variables) or have a ready-to-use futex operation like Linux, FreeBSD, etc. A suitable alternative would be to use a parking lot like WebKit did, but that would make it impossible to implement priority-inheriting mutexes, which are somewhat important on an interactive system like macOS with its QoS feature. It turns out however, that macOS actually has a futex-like syscall called ulock_wait/ulock_wake. This syscall, while exposed through libSystem, is unfortunately private and its use has resulted in Apps being rejected from the App Store, which is unacceptable for a standard library like std. Since it is implemented since macOS 10.12, retroactively stabilizing the API would make it possible for all Apps, including WebKit, to use custom, more efficient (pthread_mutex_t needs a heap-allocation of 64 bytes) synchronization primitives. Another option would be to use os_unfair_lock for the mutex implementation and use userspace alternatives for CondVar and RwLock. However, the documentation of os_unfair_lock does not guarantee that the lock is movable while not locked, even though it works in practice. Could that guarantee be added to its API? Do you see any other alternatives? Lazily allocating the pthread_mutex_t is the strategy currently chosen, but that does not mitigate certain unsoundness problems, which is something Rust likes to avoid.
Posted
by joboet.
Last updated
.
Post not yet marked as solved
0 Replies
114 Views
Hi, I am developing an MDM app. The company is registered as an enterprise account, and we do have a working MDM app. Now I was asked to add handling the list of installed application, and reporting them to the server. Searched, but can't find a function (framework) to call to get a list of installed apps on the iPhone device. Thx
Posted
by takephone.
Last updated
.
Post not yet marked as solved
0 Replies
162 Views
Hi Team, I facing a problem with building my app, After update into the latest version Xcode 13.4, I had a few problems which were successfully solved. However one of them stopped me for a few hours. The problem is with Swift Compiler or Bridging Headers is unsupported, I really don't know what causes problems. On several forums I often read that is important to set: Build Settings > Build Options > Build Libraries for Distribution = YES If I set it  ‘YES’ I getting - error: using bridging headers with module interfaces is unsupported If I set it  ‘NO’ I getting - error: module compiled with Swift 5.0.1 cannot be imported by the Swift 5.2.2 compiler, for some framework or classes. Can you please guide me, what should I do to resolve this issue ?
Posted Last updated
.
Post not yet marked as solved
1 Replies
147 Views
While developing Xamarin app for iOS I observed that large xaml from portable project is loaded with some delay or fails to be loaded with the assembly - 20% chance of fail. Unfortunately I have no way to prove it - the only symptom is that randomly InitializeComponent hangs - probably the UI thread hangs. I made sure there is no background processing from the app. The only suspect is XAML size which can be 95kB large. I am using XamlCompilation to speed up loading. How is Xaml loaded in the cycle of app launch process? Can I track it somehow? Mac console does not give me any meaningful information - at least I am not able to read it out. If this is not the right place please to ask the question direct me to the right one. I appreciate sharing your experience in this area - maybe some tip. JK
Posted
by jklobut.
Last updated
.
Post not yet marked as solved
1 Replies
192 Views
I'm trying to get information about the current Mission Control Spaces, specifically the current space number. I can access this info by using "defaults read com.apple.spaces". The problem is that this info only seems to update when a new space is created or deleted. So if you read this and then change the current space or open a new window, that file will still be set to the previous space until a new space is created or deleted, which would then update the file. I can't see any other way to get this information. Is there any non-intrusive way to force the OS to update this plist file on demand (without relaunching the dock or Finder)? Or is there any other way to get the current space number any other way? Thanks
Posted
by coderkid.
Last updated
.
Post not yet marked as solved
4 Replies
347 Views
Hi all, I'm developing a 3D modeling C++ application with embedded Python scripting capabilities which targets Big Sur. I want to distribute my application ("MyApp") with a full python package directly integrated into the MyApp bundle (the MyApp.app folder) so that users won't have to install Python manually. So I binded Python3.9 and my app using pybind11, and copied the Python framework folder (all files of the folder of the version 3.9, which is named "3.9") into the "Framework" directory of my App bundle, then locally set the PYTHONPATH and PYTHONHOME environment variables at run time so that they point to the python's Framework folder copied into the bundle. It's working: python scripts can run from my application even if there isn't python installed in the system. However, I have an issue when signing my MyApp bundle. Assuming that I need a python framework package which is universal, correctly signed and has folder structure and files compliant with Apple's bundle specs, I saw too options at first On one hand, homebrew provides signed python packages but for arm64 architecture only, so it must be excluded since I need x86_64 too. On the other hand, the official python website provides universal python packages but they are not signed. I then copied the Package from the official python website and removed many of its unessential components to make it tidy as much as possible, then ran a script that codesign all files that codesign signals as "not signed at all" when running it on the full RizomUV App bundle. Once all files that need to be signed have been signed, I got the following message when running codesign on the MyApp bundle folder: codesign --force --verify --verbose --sign "Developer ID Application: XXXXXXX (XXXXXX)" MyApp.app --option runtime MyApp.app: replacing existing signature MyApp.app: bundle format unrecognized, invalid, or unsuitable In subcomponent: /Users/me/Documents/a_path/MyApp.app/Contents/Frameworks/Python/lib/python3.9 That python3.9 folder, which contains a bunch of python script files (***.py) and some directories which seems to be not compliant with the bundle specifications. This prevents the signature of the full bundle and that's obviously a problem. I'm sure I'm not the only one who integrated Python as a framework into a universal bundle. I could do more investigations but I'm less and less confident that I'm following the right path as I find it overly complicated. There must be a better way right? Any help or feedback would be more welcomed. Best
Posted
by RemiArq.
Last updated
.
Post not yet marked as solved
0 Replies
740 Views
Hi, Since installing Xcode 13.2.1 and compiling my app I have received these warnings related to the recently added libswiftCompatibilityConcurrency everywhere: ld: warning: all bitcode will be dropped because '/Applications/Xcode-13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCompatibilityConcurrency.a(CompatibilityConcurrency.cpp.o)' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.  I am not using any of the new Swift concurrency features such as async/await in my app so unsure how these warnings are showing up. Has anyone else experienced the same or similar? Is it possible to rebuild CompatibilityConcurrency with Bitcode enabled? I am curious to know if there is a way to fix this while keeping ENABLE_BITCODE set to ON in my app. Thanks.
Posted
by mattol.
Last updated
.
Post marked as solved
2 Replies
288 Views
I've managed to build this locally via xcode but when trying to create xcframeworks of this, I am unable to create a simulator archive to add to the xcframework. Framework B has Excluded Architectures = [x86_64, arm64] for 'Any iOS Simulator SDK' Framework A imports Framework B but has Exclude Source File Names = FrameworkB.framework, FrameworkB.xcframework] for Any iOS Simulator SDK' So when using xcodebuild command /usr/bin/xcodebuild clean archive \   -scheme FrameworkB \   -archivePath PATH/FrameworkB-iphoneos.xcarchive \   -configuration Release \   -sdk iphoneos \   SKIP_INSTALL=NO \   BUILD_LIBRARY_FOR_DISTRIBUTION=YES \   BUILD_DIR=PATH/build \   DEVELOPMENT_TEAM=TEAMID \   GCC_PREPROCESSOR_DEFINITIONS=""\   SWIFT_ACTIVE_COMPILATION_CONDITIONS=""     /usr/bin/xcodebuild clean archive \ -scheme FrameworkB \ -archivePath PATH/FrameworkB-iphonesimulator.xcarchive \   -configuration Release \ -sdk iphonesimulator \ -destination='generic/platform=iOS Simulator' \ SKIP_INSTALL=NO \ BUILD_LIBRARY_FOR_DISTRIBUTION=YES \   BUILD_DIR=PATH/build \   DEVELOPMENT_TEAM=TEAMID \   GCC_PREPROCESSOR_DEFINITIONS=""\   SWIFT_ACTIVE_COMPILATION_CONDITIONS="" /usr/bin/xcodebuild -create-xcframework \   -framework PATH/FrameworkB-iphoneos.xcarchive/Products/Library/Frameworks/FrameworkB.framework \ -framework PATH/FrameworkB-iphonesimulator.xcarchive/Products/Library/Frameworks/FrameworkB.framework \   -output PATH/FrameworkB.xcframework In the clean archive step for iOS Simulator I get warning: None of the architectures in ARCHS (arm64, x86_64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (arm64, x86_64). As I've excluded both them archs. This fails to produce a binary inside the xcarchive though. Which leads to error: unable to read the file at 'PATH/FrameworkB-iphonesimulator.xcarchive/Products/Library/Frameworks/FrameworkB.framework/FrameworkB' I would like to avoid all of this but this is the only way I've managed to get the project to build for arm64 simulator with the new M1 Macs. Before FrameworkB built using x86_64 but contains libraries which don't support arm64. I have to exclude both archs though since Exclude Source File Names you can only specify Any iOS Simulator SDK rather than Only ARM64 iOS Simulator. I've tried Excluding FrameworkB when importing the xcframework but I get While building for iOS Simulator, no library for this platform was found
Posted
by rmus18.
Last updated
.
Post not yet marked as solved
6 Replies
424 Views
I have some third party frameworks that are signed with a v=20200 signature. When I add them to my project and set them to Embed and Sign, the app won't install on my device giving the error The code signature version is no longer supported. I have tried resigning them using codesign -s "Apple Development: XXXX XXXX (BLXXXXXX)" -f --preserve-metadata --generate-entitlement-der XXXSDK.xcframework but the signature always reports v=20200. I tried removing the code sign and letting Xcode do it's thing, but get the same result. Is this a problem with the way the .xcframework was built? Can I fix this without getting it rebuilt?
Posted
by dazboj.
Last updated
.
Post marked as solved
4 Replies
8.8k Views
I built a currency converter app, which gets the live currency value through API and display it. Testing on a physical phone my app works fine & no crash. But whenever I do API call I am getting warning in the simulator as below: [boringssl] boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics I have tried changing some values but nothing works OS_ACTIVITY_MODE = default DEBUG_ACTIVITY_MODE -> Debug -> any iOS simulator SDK = default here my doubts are: How to eliminate this warning? Can I just ignore this warning? Will Apple accept my app with this warning?
Posted Last updated
.
Post marked as solved
1 Replies
241 Views
I'm developing an app using CoreNFC but it crashes when running on iPhone 6 with iOS 12.5 . Trying to search for an answer I didn't find any solution. When launching the app, this is the error I read in the console: dyld: Library not loaded: /System/Library/Frameworks/CoreNFC.framework/CoreNFC Referenced from: /var/containers/Bundle/Application/327CB0C3-4B7F-4B72-8F70-EEE985F688CD/myAppName.app/myAppName Reason: image not found I've already added CoreNFC.Framework in Targets -> General -> Frameworks, Libraries, and Embedded Content and set it to "Do Not Embed" but it doesn't work. Is there any solution for this? Or is it a bug of Xcode? Please help. Thanks
Posted
by Fabbri_.
Last updated
.