SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

NSMutableDictionary! has no subscript members (0.3.9 configuration command)

Open mikesparr opened this issue 10 years ago • 0 comments

I updated to latest 0.3.9 version after solving Cocoapods issue referenced in #111 and #112 and #113 (etc.) by updating the Podfile to request the :HEAD version of two dependencies. That worked and build works but I'm seeing an error now in the SimpleAuth.configuration declaration in AppDelegate.

import SimpleAuth
...
struct Const {
    private let AuthClient = "instagram"
    private let OAuthClientIDKey = "client_id"
    private let OAuthClientID = "myclientidhere"
    private let OAuthRedirectURI = "myregisteredredirectURIhere"
}
...
SimpleAuth.configuration()[Const.AuthClient] = [
    Const.OAuthClientIDKey : Const.OAuthClientID,
    SimpleAuthRedirectURIKey: Const.OAuthRedirectURI
]

screen shot 2015-11-04 at 4 42 31 pm

Now I see and error and it will not compile arguing about NSMutableDictionary! has no subscript members? I appreciate any advice.

I've used the Podfile recommended in 0.3.9 (without provider in trailing slash) and with to install and Clean + Build successfully?

platform :ios, "9.0"
use_frameworks!

target 'Instagram' do

    end

pod 'Box', :head
pod 'Result', :head
pod 'SimpleAuth'

or

platform :ios, "9.0"
use_frameworks!

target 'Instagram' do

    end

pod 'Box', :head
pod 'Result', :head
pod 'SimpleAuth/Instagram'

mikesparr avatar Nov 04 '15 23:11 mikesparr