Post not yet marked as solved
After insert this script I can't see the property window.app.isNative = true on Safari, What I'm missing here? Thanks in advance
userContentController.addUserScript(WKUserScript(source: """function() {
if (!window.app) {
window.app = {};
}
window.app.isAndroid = false;
window.app.isIOS = true;
window.app.isNative = true;
originWhitelist={['*']}
}
""", injectionTime: .atDocumentStart, forMainFrameOnly: true))
I need to prevent screen capture by users of my app, for security reasons. The contents I display are confidential and should not be copied onto the device.
Post not yet marked as solved
We want to customize the cover image and the header on own app like Uber app has. We believe that apple grants permission. Who should we contact or what is the next step required to allow us to use this feature in our app AR-Mazing?
Hi team, using this implementation :
@objc
func shareImage(_ base64: String, title: String) {
if let image = base64.imageFromBase64 {
DispatchQueue.main.async {
guard let appDelegate = UIApplication.shared.windows.first?.rootViewController else { return }
let dataToShare = [title , image] as [Any]
let activityViewController = UIActivityViewController(activityItems: dataToShare, applicationActivities: nil)
activityViewController.excludedActivityTypes = [UIActivity.ActivityType.airDrop]
if let popoverController = activityViewController.popoverPresentationController {
popoverController.sourceRect = CGRect(x: UIScreen.main.bounds.width / 2, y: UIScreen.main.bounds.height / 2, width: 0, height: 0)
popoverController.sourceView = appDelegate.view
popoverController.permittedArrowDirections = UIPopoverArrowDirection(rawValue: 0)
}
appDelegate.present(activityViewController, animated: true, completion: nil)
}
}
}
I only share a text without an image. Should I need to add something on this implementation.
I can confirm this implementation can share text and image on Facebook, Instagram, Telegram.
Thanks in advance.
Hi Team, I had this error. What should I check to be sure the certificate is ok. Could you please recommend a block or book or tutorial that help me to understand how the certificate in iOS works. Thanks in advance.
<1> HTTP load failed, 0/0 bytes (error code: -1202 [3:-9813])
2023-06-23 15:45:32.476192-0300 xxxx simu[50709:4219288] Task <05DCEFE2-BFB2-44EC-B2EB-F79D8DCFCF75>.<1> finished with error [-1202] Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “xxxx..com.ar” which could put your confidential information at risk." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=(
"<cert(0x10b165600) s:xxxx..com.ar i: CA NoProd Intermedia xxxx xxxx>",
"<cert(0x10b181400) s: CA NoProd Intermedia *** xxxx i: Root CA xxxx xxxx>",
"<cert(0x10b028c00) s: Root CA *** xxxx i: Root CA xxxx xxxx>"
), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://hofficetoken.bancogalicia.com.ar/detect/public/registration/mobileServices.htm?code=6TMLTI5S, NSErrorFailingURLStringKey=https://xxxx.***.com.ar/detect/public/registration/mobileServices.htm?code=xxxxx, NSUnderlyingError=0x283d67930 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x280376bc0>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, kCFStreamPropertySSLPeerCertificates=(
"<cert(0x10b165600) s: xxxx.***.com.ar i: CA NoProd Intermedia xx xx>",
"<cert(0x10b181400) s: CA NoProd Intermedia *** *** i: Root CA *** ***>",
"<cert(0x10b028c00) s: Root CA xxxx xxxx i: Root CA xxxx xxxx>"
Hi Team,
What are the steps to setup this two entitlements on XCode. Im supporting iOS 13 or later (XCode 14.3.1)
com.apple.runningboard.assertions.webkit
com.apple.multitasking.systemmappassertions
Could you please send me a tutorial or a link
Thanks in advance
Guillermo
How can I setup in lower resolution video in our ARSessions? Thanks in advance.
I'm studying iOS crash analysis. Now, I need to import crashlog files into LLDB. As WWDC18 Session 414 said, I now have a copy of myApp, dSYM, ***.crash. Run the following command in a folder that I created:$ lldb(lldb) command script import lldb.macosx.crashlog(lldb) crashlog /xxxx.crashHowever, the stack trace file is not available and there is only a lot of error like:error: unable to locate any executables from the crash logDid I use it wrong? What is the correct stepts?Thanks in advance. For any question please just let me know.
How we can move the app to foreground when is on background? Could you guys show an example or documentation. Thanks in advance.
Post not yet marked as solved
Hi Team, Im trying to change the statusBar color using
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
and setNeedsStatusBarAppearanceUpdate() but its not working on iOS 15. What I need to do to change the color using swift? Thanks In advance.
Guillermo
Post not yet marked as solved
How can I change the statuds bar color on ios13 using Objecticve C? Thanks in advance.
I want to learn more about debugging. I saw the video https://developer.apple.com/videos/play/wwdc2018/414/ but I want to understant the others cause of crashes. There is a book or tutorial or something that give me more information? Thanks in advance.
Post not yet marked as solved
Main Thread Checker: UI API called on a background thread: -[UIView setUserInteractionEnabled:]PID: 2266, TID: 20651, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0Backtrace:4 CellXrakQA 0x000000010b2534f4 -[LoginScreenViewController biometricIDAuthFail:] + 1165 CellXrakQA 0x000000010b438dbc __31-[BiometricIDAuth authenticate]_block_invoke + 3966 LocalAuthentication 0x000000010e0ced66 __50-[LAContext evaluatePolicy:localizedReason:reply:]_block_invoke_2 + 727 LocalAuthentication 0x000000010e0ce349 __42-[LAContext evaluatePolicy:options:reply:]_block_invoke_2 + 5118 LocalAuthentication 0x000000010e0c9cd3 __52-[LAClient evaluatePolicy:options:uiDelegate:reply:]_block_invoke + 2079 libdispatch.dylib 0x0000000110573d7f _dispatch_call_block_and_release + 1210 libdispatch.dylib 0x0000000110574db5 _dispatch_client_callout + 811 libdispatch.dylib 0x00000001105777b9 _dispatch_queue_override_invoke + 102212 libdispatch.dylib 0x0000000110585632 _dispatch_root_queue_drain + 35113 libdispatch.dylib 0x0000000110585fca _dispatch_worker_thread2 + 13014 libsystem_pthread.dylib 0x000000011095d6b3 _pthread_wqthread + 58315 libsystem_pthread.dylib 0x000000011095d3fd start_wqthread + 132019-05-16 09:00:31.973294-0300 CellXakQA[2266:20651] [reports] Main Thread Checker: UI API called on a background thread: -[UIView setUserInteractionEnabled:]PID: 2266, TID: 20651, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0Backtrace:4 CellXrakQA 0x000000010b2534f4 -[LoginScreenViewController biometricIDAuthFail:] + 1165 CellXrakQA 0x000000010b438dbc __31-[BiometricIDAuth authenticate]_block_invoke + 3966 LocalAuthentication 0x000000010e0ced66 __50-[LAContext evaluatePolicy:localizedReason:reply:]_block_invoke_2 + 727 LocalAuthentication 0x000000010e0ce349 __42-[LAContext evaluatePolicy:options:reply:]_block_invoke_2 + 5118 LocalAuthentication 0x000000010e0c9cd3 __52-[LAClient evaluatePolicy:options:uiDelegate:reply:]_block_invoke + 2079 libdispatch.dylib 0x0000000110573d7f _dispatch_call_block_and_release + 1210 libdispatch.dylib 0x0000000110574db5 _dispatch_client_callout + 811 libdispatch.dylib 0x00000001105777b9 _dispatch_queue_override_invoke + 102212 libdispatch.dylib 0x0000000110585632 _dispatch_root_queue_drain + 35113 libdispatch.dylib 0x0000000110585fca _dispatch_worker_thread2 + 13014 libsystem_pthread.dylib 0x000000011095d6b3 _pthread_wqthread + 58315 libsystem_pthread.dylib 0x000000011095d3fd start_wqthread + 13Thanks in advance for any question just let me know.
Post not yet marked as solved
EXC_BAD_ACCESSretain >Attempted to dereference garbage pointer 0x2.libobjc.A 0x1b84c653c objc_msgSendCoreFoundation 0x1be43007c +[__NSDictionaryI __new::::::]CoreFoundation 0x1d0e26d40 +[NSDictionary dictionaryWithObjects:forKeys:count:]UIKitCore 0x1ea859b88 __37-[UIDictationConnection cancelSpeech]_block_invokelibdispatch 0x1bdf80a34 _dispatch_call_block_and_releaselibdispatch 0x1bdf817d0 _dispatch_client_calloutlibdispatch 0x2118acaf8 _dispatch_root_queue_drainlibdispatch 0x1e8ee5244 _dispatch_worker_thread2libsystem_pthread 0x1b39e11b0 _pthread_wqthreadThanks in advance for any question just let me know.This is a release version using XCode 10.2.1 and level optimization by default instead none.
Post not yet marked as solved
CTI-IOS-M4EXC_BAD_ACCESSenumerateIndexesUsingBlock: > markedConstraint > pointSize >Attempted to dereference garbage pointer 0x42b37ddb0.libobjc.A 0x1b37df530 objc_msgSend FoundationFoundation 0x1ac0f2390 -[NSISEngine outgoingRowHeadForRemovingConstraintWithMarker:outgoingRowHead:]Foundation 0x1ac0b6238 -[NSISEngine removeConstraintWithMarker:]UIKitCore 0x1ac0b5ec0 -[NSLayoutConstraint _removeFromEngine:]UIKitCore 0x1d8032658 -[UIView(UIConstraintBasedLayout) _layoutEngine_willRemoveLayoutConstraint:]UIKitCore 0x1d80332a8 -[UIView(UIConstraintBasedLayout) nsli_removeConstraint:]UIKitCore 0x1d80331c0 -[UIView(UIConstraintBasedLayout) _removeConstraint:]Foundation 0x1d80334b8 __53-[UIView removeConstraints:]_block_invokeUIKitCore 0x1ac0a6b30 -[NSISEngine withBehaviors:performModifications:]UIKitCore 0x1d8033380 -[UIView(UIConstraintBasedLayout) removeConstraints:]UIKitCore 0x1d80446f0 -[UIView(AdditionalLayoutSupport) _snipDangliesWithForce:repairIfPossibleForViewThatMoved:newSuperview:oldSuperview:]UIKitCore 0x1d8044388 _UIViewRemoveConstraintsMadeDanglyByChangingSuperviewFoundation 0x1d80e2a4c __45-[UIView _postMovedFromSuperview:]_block_invokeUIKitCore 0x1ac0a6b30 -[NSISEngine withBehaviors:performModifications:]UIKitCore 0x1d80e2988 -[UIView(Hierarchy) _postMovedFromSuperview:]UIKitCore 0x1b9bcca8c __UIViewWasRemovedFromSuperviewUIKitCore 0x1d80e0574 -[UIView(Hierarchy) removeFromSuperview]UIKitCore 0x1c558e0cc -[_UIButtonBar _layoutBar]UIKitCore 0x1d746c508 -[_UIButtonBarStackView updateConstraints]UIKitCore 0x1d80403f8 -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:]UIKitCore 0x1d80408a0 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]Foundation 0x1d804077c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]UIKitCore 0x1ac0a6b30 -[NSISEngine withBehaviors:performModifications:]UIKitCore 0x1d8040fb8 __100-[UIView _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invokeUIKitCore 0x1d803fac8 -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:]UIKitCore 0x1d8040bd8 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]UIKitCore 0x1d8041a5c -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:]UIKitCore 0x1d80e4874 -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine]QuartzCore 0x1d80f7e50 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]QuartzCore 0x1afbba1ec -[CALayer layoutSublayers]QuartzCore 0x1afbbf194 CA::Layer::layout_if_neededQuartzCore 0x1afb220a4 CA::Context::commit_transactionQuartzCore 0x1afb50104 CA::Transaction::commitlibsystem_pthread 0x19766d284 CA::Transaction::release_threadlibsystem_pthread 0x1ab34f4b0 _pthread_tsd_cleanuplibsystem_pthread 0x1bd390900 _pthread_exitlibsystem_pthread 0x223a01504 _pthread_wqthread_exit0x223a01148 _pthread_wqthreadThanks in advance for any question just let me know.