adamhartford / SwiftR

Swift client for SignalR (iOS and Mac)
MIT License
173 stars 74 forks source link

SwiftR 0.14.0 is not connecting with server using Xcode 9.3, Swift 4.1 and iOS 11.3 #113

Open vishalgabani opened 6 years ago

vishalgabani commented 6 years ago

I was using SwiftR 0.12.0 with Xcode 9.2, swift 4.0 and iOS 11.0, it was working fine. Once started using Xcode 9.3, SwiftR 0.12.0 stopped connecting with server so updated SwiftR to 0.14.0 version. Latest version also does not connected with server. It just gives in log "Starting...", "Connected" and "Disconnected" not matter how many times you try. Even when credentials are wrong it does not show any error or any other log messages.

sathishTkumar commented 6 years ago

Hi Vishal,

Basically am trying to built a custom framework which uses SignalR. So I reached out to Cocoapod to install SwiftR. Once done, when i build the framework and integrate the same in my sample native iOS application project, on running it in my device, the app is crashing with the below error :

dyld: Library not loaded: .framework/SwiftR Referenced from: /private/var/containers/Bundle/Application/4D90F911-C15A-4059-92C5-BF983A3FA39B/AAAA.app/Frameworks/YYYY.framework/YYYY Reason: image not found

This is what in my Podfile FYR: platform :ios, '9.0' target 'YYYY' do use_frameworks! pod 'SwiftR' end

Since you are already working with this framework, kindly help me in solving this issue.

vishalgabani commented 6 years ago

Hi @sathishTkumar,

I am not sure but this could work. Change your podfile to this,

use_frameworks!
platform :ios, '9.0'

target 'YYYY' do
    pod 'SwiftR'
end

Regards,

sathishTkumar commented 6 years ago

Thanks Vishal. I sorted out my issue.