Parse platform iOS解析服务器在运行时设置服务器url,无需重新启动应用程序

Parse platform iOS解析服务器在运行时设置服务器url,无需重新启动应用程序,parse-platform,Parse Platform,我试图在应用程序内部设置一个新的解析服务器url,但没有任何改变 Parse.server = @"https://serverNewUrl.com"; or [Parse setServer:@"https://serverNewUrl.com"]; NSLog(@"%@",Parse.server); -----> This prints the new server set NSLog(@"%@",Par

我试图在应用程序内部设置一个新的解析服务器url,但没有任何改变

Parse.server = @"https://serverNewUrl.com"; or [Parse setServer:@"https://serverNewUrl.com"];
NSLog(@"%@",Parse.server); -----> This prints the new server set
NSLog(@"%@",Parse.currentConfiguration.server); -----> This prints the old one set

你是如何实现改变的?解析iOS SDK 1.18

尝试使用初始化函数。我相信即使您再次使用它来更改服务器URL,它也应该可以工作

让parseConfig=ParseClientConfiguration{ $0.applicationId=parseAppId $0.clientKey=parseClientKey $0.server=parseServerUrlString } Parse.initializewith:parseConfig
不,应用程序崩溃,因为您无法两次初始化解析