почему мое приложение не работает на iPhoneX, как на симуляторе? - PullRequest
1 голос
/ 15 марта 2019

Возникла проблема с запуском моего приложения на моем iPhone X 12.1.4 против симулятора.Я использую Xcode 10.1.Когда я подключаюсь к своему симулятору, все работает как надо, но когда я запускаю его на своем телефоне, я получаю сообщение об ошибке:

let request = RideRequest(snapshot: self.rideRequests[indexPath.row])

ошибка:

Missing argument for parameter 'username' in call

Также, когда я нажимаю на кнопку, когда она установлена ​​на моем телефоне, приложение вылетает, но при запуске на симуляторе - без сбоев, и оно работает как надо.

Еще одна вещь:

 When I run and install on simulator no errors appear on Xcode but when
 I run and install on my iPhoneX, the 'red' ! mark appears with the
 error in Buildtime as a Swift Compiler Error but it will still install
 and run on the iPhone but for some reason crashes when button is 
 pressed.

RideRequest:

public RideRequest(String userId, String username, String currentAddress, String destAddress, Double latitude, Double longitude, Double destLat, Double destLong, Double ridePrice)

Есть идеи?

...