Type ‘Any’ Has no Subscript Members in xcode 8 Swift 3 [duplicate]

Try this: let json = try JSONSerialization.jsonObject(with: data!, options:.allowFragments) as! [String:AnyObject] Safe way: do { if let json = try JSONSerialization.jsonObject(with: data!, options:.allowFragments) as? [String:Any] { print(json) } } catch let err{ print(err.localizedDescription) } You have to cast type Any to Swift dictionary type [String:AnyObject]. Edit: Swift 3 In swift 3 the purpose of AnyObject … Read more

App rejected due to missing usage descriptions (Xcode8)

iOS 10 must add permission in info.plist just review this BLOG :- settings-in-ios-10 you get all idea. Add permission in info.plist file base on your error log. Note: Write proper reason for permission in string value otherwise apple reject app again. NSCameraUsageDescription <key>NSCameraUsageDescription</key> <string>You have to describe the real usage for a human.</string> NSContactsUsageDescription <key>NSContactsUsageDescription</key> … Read more

Xcode 8 Beta 3 Use Legacy Swift issue

If you are using CocoaPods and want it to be fixed automatically every time you are doing a pod install, then you can add these lines to the end of your Podfile: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings[‘SWIFT_VERSION’] = ‘3.0’ end end end EDIT: This problem is now fixed if you … Read more

Code Sign Error in macOS Monterey, Xcode – resource fork, Finder information, or similar detritus not allowed

Solution 1: Apple Developer Website Answers above problem Here. Execute below command in terminal : First goto projects root folder xattr -cr <path_to_project_dir> Clean Xcode and Re Build. Cheers Solution 2: Just go to project root directory and run this command xattr -cr . xattr -cr . Clean Xcode and Re Build. Done. Solution 3: … Read more