Mobile Core Services

RSS for tag

Use uniform type identifier (UTI) information to create and manipulate data that can be exchanged between your app and other apps and services using Mobile Core Services.

Mobile Core Services Documentation

Posts under Mobile Core Services tag

3 Posts
Sort by:
Post not yet marked as solved
0 Replies
783 Views
Hi, My iOS app used to import say abc.xyz file using ‘Open in App’ option which is achieved using Uniform Type Identifiers(UTI). This abc.xyz file was attached and shared via an email client. [Note: My app also has Share extension to import other file type] Upto iOS 15, When I try to import this file to my app I can see 2 options(Expected behaviour): Open in app Share with app But from iOS 16 and above(latest iOS 17 beta 4), I can only see below option, Share with app To debug further, I created a project(iOS 17 beta 4) and added UTI support for abc.xyz file format(Same as above). When the same file is attached in email client and try to import to app, I can see below option, Copy to app When this file is saved locally(on device) and later try to import from the Files folder, I can see below option, Open in app But the moment I add Share extension(Which is the requirement of my app), the only option to import file is Share with app From the above observation my queries are, Why there is behavioural change from iOS 16 and above when showing the options to import file ? Has “Open in app” option removed when Share extension is present in app from iOS 16 and above ? Does that mean when Share extension target is added in project the only way to import files is via Share extension from iOS 16 and above ? Or can you please suggest if any extra parameters to be added to info.plist from iOS 16 and above to support both options i.e., Open in app & Share with app ?
Posted
by BMDivya.
Last updated
.
Post not yet marked as solved
8 Replies
4.3k Views
I work for one of the networks. I am able to successful download the eSIM in iPhone for iOS 13.*. Where I was taken to unknown state (CTCellularPlanProvisioningAddPlanResult) in iOS 14.0 always also it prompt the os screen to install eSIM("Set up Mobile Plan") Please let me know why it take to unknown state always and why OS screen popup ?, please let me know if any configuration needed specific for iOS 14.x Also attached the configuration & prototype code for your reference       hud.show(animated: true)       let plan = CTCellularPlanProvisioning()       self.request = CTCellularPlanProvisioningRequest()       self.request?.address = "" // SMDP Address       self.request?.matchingID = ""  // Acitvation code.       if let validRequest = self.request {         weak var weakSelf = self         plan.addPlan(with: validRequest) {[weak self] result in           self?.hud.hide(animated: true)           switch result {           case .success:             weakSelf?.alertMessageToUser(title: "Hurray !...", message: "ESIM Downloaded Successfully")             print("Successful")           case .fail:             print("ESIM Download failed, contact your carrier")           case .unknown:             print("Unknown details, contact your carrier")           @unknown default:             print("Unknown details, CONTACT CARRIER")           }         }       }     } <array> <dict> <key>MCC</key> <string></string> // Country Code <key>MNC</key> <string></string> //Network Code </dict> </array>   <key>com.apple.security.network.server</key>   <true/>   <key>com.apple.security.network.client</key>   <true/>   <key>com.apple.CommCenter.fine-grained</key>   <array>     <string>spi</string>     <string>sim-authentication</string>     <string>identity</string>   </array>   <key>com.apple.wlan.authentication</key>   <true/>   <key>keychain-access-groups</key>   <array>     <string>apple</string>     <string>com.apple.identities</string>     <string>com.apple.certificates</string>   </array>   <key>com.apple.private.system-keychain</key> I am successful in download eSIM to iPhone for 13.*, Where I was getting the below error for iOS 14.0.1 Logs(OSACTIVITYMODE enabled) Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} BackTrace thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1frame #0: 0x0000000104cf9428 My Optus`closure #1 in ViewControllerTwo.installESIM_1(result=unknown, self=0x0000000107904d80, weakSelf=0x0000000107904d80) at ViewControllerTwo.swift:44:25  frame #1: 0x0000000104cf99a4 My Optus`thunk for @escaping @callee_guaranteed (@unowned CTCellularPlanProvisioningAddPlanResult) -> () at <compiler-generated>:0   frame #2: 0x0000000194fe412c CoreTelephony`__60-[CTCellularPlanProvisioning addPlanWith:completionHandler:]_block_invoke + 28   frame #3: 0x0000000195053268 CoreTelephony`__90-[CoreTelephonyClient(CellularPlanManager) addPlanWith:appName:appType:completionHandler:]_block_invoke + 36   frame #4: 0x0000000105077b68 libdispatch.dylib`_dispatch_call_block_and_release + 32   frame #5: 0x00000001050795f0 libdispatch.dylib`_dispatch_client_callout + 20   frame #6: 0x0000000105088890 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1000   frame #7: 0x0000000194a271e4 CoreFoundation`CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16   frame #8: 0x0000000194a213b4 CoreFoundation`__CFRunLoopRun + 2508   frame #9: 0x0000000194a204bc CoreFoundation`CFRunLoopRunSpecific + 600   frame #10: 0x00000001ab4a5820 GraphicsServices`GSEventRunModal + 164   frame #11: 0x00000001973c4734 UIKitCore`-[UIApplication _run] + 1072   frame #12: 0x00000001973c9e10 UIKitCore`UIApplicationMain + 168   frame #13: 0x0000000104cfb688 My Optus`main at AppDelegate.swift:12:7   frame #14: 0x00000001946e7e60 libdyld.dylib`start + 4
Posted
by bdurai.
Last updated
.
Post not yet marked as solved
1 Replies
9.0k Views
moded@modeds-mbp ~ % sudo gem install cocoapods Password: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/ext/ffic /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20201227-2974-utuq5f.rb extconf.rb checking for ffi.h... * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBYBASENAME) --with-ffic-dir --without-ffic-dir --with-ffic-include --without-ffic-include=${ffic-dir}/include --with-ffic-lib --without-ffic-lib=${ffic-dir}/lib --enable-system-libffi --disable-system-libffi --with-libffi-config --without-libffi-config --with-pkg-config --without-pkg-config /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in trydo': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in block in trycompile' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:534:in withwerror' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in trycompile' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1109:in block in haveheader' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:959:in block in checkingfor' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in block (2 levels) in postpone' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in open' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in block in postpone' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in open' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:357:in postpone' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:958:in checkingfor' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1108:in haveheader' from extconf.rb:10:in systemlibffiusable?' from extconf.rb:42:in `' To see why this extension failed to compile, please check the mkmf.log which can be found here: /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.14.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2 for inspection. Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.14.2/gemmake.out
Posted
by moded.
Last updated
.