iOS SDK issue with SWIFT