Set Mock location on iOS
Hi there, I am having again some trouble with TestComplete, this time with fake locations. I try to set the fake location of an iOS device using the code from this help article. Now, I get two problems: In the line Mobile.Device.GPS.GPSEnabled = true; I get "Falsche Anzahl an Argumenten oder ungültige Eigenschaftszuweisung" (Wrong number of arguments or illegal parameter assignment) When I debugged that piece of code, I found out that GPSEnabled was already set to true, so I removed that line for experimental purpose. Now I get the very same error but in the line Mobile.Device.GPS.SetLocation(Longt,Lat,Alt,Acc); Please note that the app has granted GPS access (I answered the prompt from iOS with Yes). So I read through TestCompletes help articles and found this article which says: "TestComplete can specify mock location data only when the Allow mock locations setting is enabled in the iOS developer settings." I have no idea if this has something to do with my problem but I couldn't find anything like "Allow mock locations" in the developer options of my iOS device. Thanks for helping, Greetings, vat7.3KViews0likes2Comments