iOS

iOS is the operating system for iPhone.

iOS Documentation

Posts under iOS tag

4,186 results found
Post marked as unsolved
283 Views

UIImagePickerController: Camera preview on iPhone 12 (Pro) at undefined position?

Using UIImagePickerController, on all devices except iPhone 12 and iPhone 12 Pro (and maybe devices that will become available in the future) the camera preview is aligned at the top of the screen. On the iPhone 12 and iPhone 12 Pro (and maybe other iPhone 12 variants), the preview is no longer aligned at the top, but at a position that does not seem to be determinable (guess: about 100 pixels from the top). This becomes a problem if cameraOverlayView is used to present a mask to the user to help him positioning an object at a specific location within the capture. The alignment of the preview should be at the top of the screen (as on other devices) or there should be any way to determine the offset. Anyone has any idea how to solve that?
Asked
Last updated .
Post marked as unsolved
22 Views

Popup display when UIPickerView bar button is selected

url-link - https://developer.apple.com/forums/content/attachment/b8c1d34c-4a5c-421f-9b41-fcf0932c9d92 I held the screen for a screenshot but I am unable to actually proceed. In normal case, the year selected by the user should be displayed in the TextField of the screen popup. I want to know why the bar button text of UIPickerView is popped up on the iPhone. I did not enter the code that pops up the Bar Button text of PickerView. Are there any iphone settings related to this?
Asked
Last updated .
Post marked as unsolved
18 Views

iOS 12.5 Simulator

How to get iOS 12.5 for simulator in Xcode? I looked under Preferences - Components but 12.5 is not there and i could not find any documentation related on internet. I checked it on Xcode versions 12.2 and 12.4.
Asked
by Joule87.
Last updated .
Post marked as unsolved
30 Views

Store purchases or app download progress in iOS 14.5 with the SKStoreProductViewController failed

I’m developing a custom keyboard extension: https://developer.apple.com/design/human-interface-guidelines/ios/extensions/custom-keyboards/ In some cases, i need to call SKStoreProductViewController to display a store for users to purchase media from the App Store: https://developer.apple.com/documentation/storekit/skstoreproductviewcontroller However, the download or purchase progress cannot be completed in iOS 14.5 after entering the user’s password, but there is no problem in iOS 14.4.2. Here's the screen recording video: drive.google.com/file/d/17mnT9WnK6BNyR7geMMsfhs_l6mvu-C_P/view?usp=sharing Anyone can help me to solve this problem?
Asked
by CLAY99.
Last updated .
Post marked as unsolved
11 Views

Build fail

react native info OS: macOS 10.15.3 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Memory: 786.27 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 15.2.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.0.10 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild Languages: Java: 13.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 = 17.0.1 react-native: 0.64.0 = 0.64.0 react-native-macos: Not Found npmGlobalPackages:react-native*: Not Found Podfile require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '10.0' install! 'cocoapods', :deterministic_uuids = false target 'MyAppTest' do config = use_native_modules! use_react_native!( :path = config[:reactNativePath], :hermes_enabled = false ) target 'MyAppTestTests' do inherit! :complete end use_flipper!() post_install do |installer| react_native_post_install(installer) end end Error (in target 'FBReactNativeSpec' from project 'Pods') warning: None of the architectures in ARCHS (i386, x86_64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (i386, x86_64) which is not in EXCLUDED_ARCHS (x86_64). (in target 'FBReactNativeSpec' from project 'Pods') BUILD FAILED The following build commands failed: PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/hello/Library/Developer/Xcode/DerivedData/MyAppTest-akwjgvymwkbxvzaivgqioaporzvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00011EF0.sh (1 failure)
Asked
Last updated .
Post marked as unsolved
15 Views

I'm trying to receive indicate via BLE connection, but I can't receive any data

I am creating an app for BLE connection for iOS. I can connect to the peripheral from central (iPhone6: iOS12.4.9) and send commands with I am able to send commands with writevalue. https://developer.apple.com/documentation/corebluetooth/cbperipheral/1518949-setnotifyvalue In the above setNotifyValue, there is a description that seems to be accepted by indicate. The following methods of didUpdateValueFor do not return. func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518708-peripheral If you know how to implement receiving data in indicate, please let me know. func peripheral(_ peripheral: CBPeripheral, didUpdateNotificationStateFor characteristic: CBCharacteristic, error: Error?) (log) didUpdateNotificationStateFor CBCharacteristic: 0x2833cde60, UUID = ***2000-XXXX-XXXX-XXXX-XXXXXXXXX, properties = 0x20, value = (null), notifying = YES*********************** The sample code is shown below. I'm still working on it, so there may be some garbage code, sorry. SampleCode - https://developer.apple.com/forums/content/attachment/5a33e637-c151-4886-b913-73683abc968b
Asked
Last updated .
Post marked as unsolved
15k Views

iOS 14 bluetooth problem

So i did install iOS 14 the beta version on my iPhone 11 Pro 256GB version. Got a few problems. Maby people know the solution for it. Bluetooth with mu Airpods Pro stops working after time. One moment it works perfect. Then the music stops and the connection in gone. Have to reconnect the bluetooth than everthing works again. Same bluetooth problem with my car radio. i Also have the problem that my phone stops working. Black screen and reboot. Anymore know what to do with this?
Asked
by Iman2020.
Last updated .
Post marked as unsolved
61 Views

Iframe validation

I would like to know if apple accept an Iframe as an app . I have a web dashboard system, but I created an iframe version, which runs the web system of the dashboard in which the iframe has the client url. I would like to know if you validate this iframe as an app .
Asked
Last updated .
Post marked as unsolved
55 Views

NSPinnedDomains in WKWebView

Hi, I implemented the NSPinnedDomains according to https://developer.apple.com/news/?id=g9ejcf8y "Identity Pinning: How to configure server certificates for your app". This is my config (I added a wrong SHA256 hash so I can test if it works): keyNSAppTransportSecurity/key dict     keyNSPinnedDomains/key     dict         keyjsonplaceholder.typicode.com/key         dict             keyNSPinnedCAIdentities/key             array                 dict                     keySPKI-SHA256-BASE64/key                     stringr/mIkG3eEpVdm+u/ko/cwxzOMo1bk4TyHIlByibiA5E=/string                 /dict             /array             keyNSIncludesSubdomains/key             true/         /dict     /dict /dict With NSURLSessions it properly fails when I try to load https://jsonplaceholder.typicode.com/todos/2 it prints following error: An SSL error has occurred and a secure connection to the server cannot be made But when I try to load the URL from JavaScript in WKWebView, it succeeds. Is WKWebView not supported? Or am I doing something wrong? Thanks and kind regards, Mika Objc code: NSString *urlString = @"https://jsonplaceholder.typicode.com/todos/2"; NSURL *url = [NSURL URLWithString:urlString]; NSURLSessionDataTask *downloadTask = [[NSURLSession sharedSession] dataTaskWithURL:url completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { }]; [downloadTask resume]; Web code (can be included in any html page inside WKWebView): script document.addEventListener("DOMContentLoaded", () = { fetch("https://jsonplaceholder.typicode.com/todos/2") .then(res = res.json()) .then(res = console.log(res)); }); /script
Asked
Last updated .
Post marked as unsolved
13 Views

Documents required for Ad Network ID requests in SKAdNetwork

Our company displays ads in our apps. The ads are contracted directly by us to advertisers. So we would like to implement SKAdNetwork to measure the effectiveness of our ads. To do so, we would like to request an Ad Network ID from the following page. https://developer.apple.com/contact/request/ad-network-id/ On that page we need to enter the URL of a document in the "Ads on Your Apps/Platform" field. Can anyone advise me what I need to include in this document?
Asked
by ysk777.
Last updated .
Post marked as unsolved
7 Views

Swift Compiler: Unexpected character in prerequisites

There is an issue when compiling an Xcode workspace containing an iOS 14 app and a local package. When archiving the compiler logs errors and creates an invalid archive. There are hundreds of errors like: error: error reading dependency file '/UserDirectory/Library/Developer/Xcode/DerivedData/AppName-BuildID/Build/Intermediates.noindex/ArchiveIntermediates/AppName/IntermediateBuildFilesPath/PackageName.build/Release-iphoneos/PackageTargetName.build/Objects-normal/arm64/PackageTargetName-master.d': unexpected character in prerequisites at position LineNumberWithColon (in target 'PackageTargetName' from project 'PackageName') It is known that the compiler doesn't accept colons, but all of the colons don't come from my code. There are two situations as observed in the master.d files. There is a file containing colons in the name, like: "PackageName::MAINGROUP::REF_3::REF_11.bc" generated by the compiler. Some of the files with the .bc extension are displayed in the file as separated with a colon. What could be the reason for the compiler to generate such an erroneous output? What can be done to further investigate the issue? Is it a compiler error?
Asked
by Damian K..
Last updated .
Post marked as unsolved
34 Views

85 x ld: warning: building for iOS, but linking in .tbd file (<filename>.tbd) built for iOS Simulator

Hi! My Python-Kivy app works on iOS now! Both on the Xcode iPhone 7 simulator AND on a physical iPhone 7. But when I deploy it on the physical iPhone 7 I get 85 annoying warnings of this form: ld: warning: building for iOS, but linking in .tbd file (filename.tbd) built for iOS Simulator What can I do about that? Thank you. Henrik
Asked
by HenrikRo.
Last updated .
Post marked as unsolved
84 Views

SecCertificateCopyKey does not work on some iOS 14 Version and SecKeyVerifySignature at all

SecCertificateCopyKey returns always nil on iOS 14.4.0, 14.4.1 and 14.4.2 but on iOS 13 and 14.1 works fine. Is there a workaround for this ? SecKeyVerifySignature with algorithm ecdsaSignatureMessageX962SHA384 does not work properly (has been tested on devices with iOS 13 and 14). It returns "Error Domain=NSOSStatusErrorDomain Code=-67808 "EC signature verification failed (ccerr -7)" UserInfo={NSDescription=EC signature verification failed (ccerr -7)}" is this already known? Any workaround?
Asked
by filipovic.
Last updated .
Post marked as unsolved
81 Views

iOS 14 Local Network Privacy - SCNetworkReachability

Hi, We have a simple app that connects to backend to fullfil its data requirements. We have recetnly tested our app on iOS 14 and found the local network privacy alert. we yet make 1st release on store and testing phase so the backend is on internal network. We also use 'SCNetworkReachability' with host as our backend url to check whether user is connected to internet before proceeding further on very 1st screen. We have checked 'Local Network Privacy FAQ-2' and found use of nsurlsession's use also count in local network usage, but we can see on device not all apps we downloaded from app store with usage like us requesting permission. Please help with above usage to determine if we need the local network usage description in the app or using services not required as per our usage.
Asked
by sandysa.
Last updated .
Post marked as unsolved
1.8k Views

[UITableView _updateVisibleCellsNow:] IOS 13 Crash

Hello Apple Developer, we recently found that on some devices of IOS 13, there is a [UITableView _updateVisibleCellsNow:] Crash recursive call, the following is the stackThread 1 Queue : com.apple.main-thread (serial)#0 0x00000001a1bb02fc in lookUpImpOrForward () #1 0x00000001a1ba1110 in object_getMethodImplementation () #2 0x00000001a16a2084 in _NSIsNSString () #3 0x00000001a1581f04 in -[NSTaggedPointerString isEqual:] () #4 0x00000001a1615850 in CFEqual () #5 0x00000001a16b407c in CFBasicHashFindBucket () #6 0x00000001a15dd19c in CFDictionaryGetValue () #7 0x00000001a974071c in -[UIView(Rendering) contentMode] () #8 0x00000001a8fada64 in -[_UIImageContentLayout initWithSource:target:] () #9 0x00000001a8fad7b4 in +[_UIImageContentLayout layoutForSource:inTarget:] () #10 0x00000001a97013bc in -[UIImageView _layoutForImage:] () #11 0x00000001a9701fe4 in -[UIImageView _setImageViewContents:] () #12 0x00000001a9702f38 in -[UIImageView _updateState] () #13 0x00000001a9704830 in -[UIImageView _setViewGeometry:forMetric:] () #14 0x00000001a96e18f0 in -[UIScrollView _layoutVerticalScrollIndicatorWithBounds:effectiveInset:contentOffset:fraction:additionalInset:cornerAdjust:showing:recalcSize:] () #15 0x00000001a96e129c in -[UIScrollView _adjustScrollerIndicators:alwaysShowingThem:] () #16 0x00000001a96cfc84 in -[UIScrollView setContentOffset:] () #17 0x00000001a94a0e2c in -[UITableView setContentOffset:] () #18 0x00000001a96ec9f8 in -[UIScrollView _adjustContentOffsetIfNecessary] () #19 0x00000001a9492688 in -[UITableView _restoreOrAdjustContentOffsetWithRowCount:initialContentInsetTop:] () #20 0x00000001a9481e64 in -[UITableView _updateVisibleCellsNow:] () #21 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #22 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #23 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #24 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #25 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #26 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #27 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #28 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #29 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #30 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #31 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #32 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #33 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #34 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #35 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #36 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #37 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #38 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #39 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #40 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #41 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #42 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #43 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #44 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () ............. #2185 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2186 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2187 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2188 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2189 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2190 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2191 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2192 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2193 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2194 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2195 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2196 0x00000001a949e8d0 in -[UITableView layoutSubviews] () #2197 0x00000001a9752a94 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] () #2198 0x00000001a4059818 in -[CALayer layoutSublayers] () #2199 0x00000001a405e03c in CA::Layer::layout_if_needed(CA::Transaction*) () #2200 0x00000001a4069800 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) () #2201 0x00000001a3fc0804 in CA::Context::commit_transaction(CA::Transaction*, double) () #2202 0x00000001a3fea680 in CA::Transaction::commit() () #2203 0x00000001a93026a8 in _afterCACommitHandler () #2204 0x00000001a1612b24 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ () #2205 0x00000001a160da24 in __CFRunLoopDoObservers () #2206 0x00000001a160dff0 in __CFRunLoopRun () #2207 0x00000001a160d7ac in CFRunLoopRunSpecific () #2208 0x00000001a080f180 in GSEventRunModal () #2209 0x00000001a92da244 in UIApplicationMain ()This Crash has some strange phenomena:1. Appears only on some devices: I have a lot of devices, this Crash only appears on the iPhone 6Plus2. If you interrupt the debugging during the debugging process, there is a certain probability that Crash does not appear, unless you delete the app and rebuild it, you can continue to reproduce Crash3. It seems that the problem is in the layoutSubView: method of the UITableViewIn addition, I noticed that iOS 13 seems to have modified the implementation of [UITableView layoutSubViews]. In iOS 12,it call[UITableView _updateVisibleCellsNow:isRecursive:]and in IOS 13,it Call[UITableView _updateVisibleCellsNow:]This problem has been bothering me for a long time, please give me some help.
Asked
Last updated .