ios12

Multiple commands produced error xcode 10 [duplicate]

你说的曾经没有我的故事 提交于 2019-11-30 12:37:24
问题 This question already has answers here : Xcode 10 Error: Multiple commands produce (61 answers) Closed last year . I am working on an iOS app. It is working fine in Xcode 9.4.1, but when I build it in Xcode 10 it gives me following error: :-1: Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Dev-iphonesimulator/TLYShyNavBar/TLYShyNavBar.framework/Info.plist': 1) Target 'TLYShyNavBar' has copy command from '/Users/.../Desktop/Workspace/iOS/.../Pods

iOS 12 IAP Sandbox

强颜欢笑 提交于 2019-11-30 12:13:42
I was watching this WWDC18 talk , and they've explicitly announced that they'll allow developers to simultaneously connect one Sandbox Account for IAP testing - when in Developer Mode and in iOS12 . Screenshot of the moment that they show the feature Straight to the question: I've tried to access it from both my iPhone 6S and iPhone X - both on iOS 12 -, but neither had this option at the end of the screen. Also, I've searched about this topic, and no one seems to be addressing this issue. The "Apple ID > iTunes & App Stores" on my device This feature is incredible because it removes the need

How to change status bar style - iOS 12

梦想与她 提交于 2019-11-30 08:34:34
I need to update status bar style on every view controller based on the background color (what UINavigationController is doing automatically). Have tried all the options described on stackoverflow ( View controller-based status bar appearance in info.plist set to YES ), but none worked for me. I am using Xcode 10 beta 6 and Swift 4.2, targeting iOS 12. Set View controller-based status bar appearance to NO in the info.plist and override preferredStatusBarStyle in each view controller like so: override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } And call

iOS 12 web push notifications

旧时模样 提交于 2019-11-30 08:05:45
Does the new iOS 12 safari support web push notification with service worker? In the last version of iOS there was service worker but there wasn't the pushManager object. iOS don't support the W3C Spec web push notifications yet. But there is a Safari specific API for web notifications. Refer to this answer on multiple options you have. https://stackoverflow.com/a/49803408/1057093 Update: Corrected the Answer in the above link to clarify proprietary solution is only for OS X - Safari and no solution for iOS Safari yet. Custom in app notification is the best we can do today for iOS Safari. I

SystemConfiguration.CaptiveNetwork doesn't work on iOS 12

北慕城南 提交于 2019-11-30 06:50:56
I have a function that detects the current SSID from the user. Unfortunately this doesn't work anymore with iOS 12. This means it just jumps over the if let interfaceInfo = CNCopyCurrentNetworkInfo(interface as! CFString) as NSDictionary? { part. Maybe it's just a bug or it's deprecated. I've found nothing on Apple Docs. On older iOS 11, 10, and 9 devices, it works well. Here's my Code: func getWiFiSsid() -> String? { if let interfaces = CNCopySupportedInterfaces() as NSArray? { for interface in interfaces { if let interfaceInfo = CNCopyCurrentNetworkInfo(interface as! CFString) as

Multiple commands produced error xcode 10 [duplicate]

孤街浪徒 提交于 2019-11-30 02:41:06
This question already has an answer here: Xcode 10 Error: Multiple commands produce 59 answers I am working on an iOS app. It is working fine in Xcode 9.4.1, but when I build it in Xcode 10 it gives me following error: :-1: Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Dev-iphonesimulator/TLYShyNavBar/TLYShyNavBar.framework/Info.plist': 1) Target 'TLYShyNavBar' has copy command from '/Users/.../Desktop/Workspace/iOS/.../Pods/TLYShyNavBar/TLYShyNavBar/Info.plist' to '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Dev

Navigator.mediaDevices.getUserMedia not working on iOS 12 Safari

岁酱吖の 提交于 2019-11-30 01:50:44
问题 As of iOS 12, navigator.mediaDevices.getUserMedia() is returning an error in Safari. To recreate this, open iPhone Web Inspector, then run this snippet in the console: var constraints = { audio: true, video: { width: 1280, height: 720 } }; navigator.mediaDevices.getUserMedia(constraints) .then(function() { console.log('getUserMedia completed successfully.'); }) .catch(function(error) { console.log(error.name + ": " + error.message); }); You'll see that this runs successfully in desktop

iOS 12 IAP Sandbox

人走茶凉 提交于 2019-11-29 11:39:14
问题 I was watching this WWDC18 talk, and they've explicitly announced that they'll allow developers to simultaneously connect one Sandbox Account for IAP testing - when in Developer Mode and in iOS12 . Screenshot of the moment that they show the feature Straight to the question: I've tried to access it from both my iPhone 6S and iPhone X - both on iOS 12 -, but neither had this option at the end of the screen. Also, I've searched about this topic, and no one seems to be addressing this issue. The

How to change status bar style - iOS 12

狂风中的少年 提交于 2019-11-29 11:26:40
问题 I need to update status bar style on every view controller based on the background color (what UINavigationController is doing automatically). Have tried all the options described on stackoverflow ( View controller-based status bar appearance in info.plist set to YES ), but none worked for me. I am using Xcode 10 beta 6 and Swift 4.2, targeting iOS 12. 回答1: Set View controller-based status bar appearance to NO in the info.plist and override preferredStatusBarStyle in each view controller like

Swift 4.2 Cannot convert value of type '(UIImagePickerController.InfoKey).Type' to expected argument type 'UIImagePickerController.InfoKey'

為{幸葍}努か 提交于 2019-11-29 05:57:43
My below code was working just fine with swift 4 but after upgrading to swift 4.2 I am getting this error, I had wasted my 3 hours searching what's the issue but failed. Please if anyone can guide me how to fix this. func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { if postType == 2 { let image = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController.InfoKey)] as! UIImage mediaType.image = image } else { videoURL = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController