我在我的原生iOS应用程序(一堆.a库)中使用第三方框架.我的应用程序是使用XCode 5 base SDK 7.0开发的.
当部署目标为6.1(库和头搜索路径良好)时,库可以编译和链接.但是,当我将部署目标更改为7.0时,我收到以下链接器错误:
Undefined symbols for architecture i386:
"std::string::find_last_of(char const*, unsigned long) const", referenced from:
GetExecutionDir(ECTemplateString<char>&, char*, bool) in myLibrary.a(moPlatForm.o)
"std::string::find(char const*, unsigned long) const", referenced from:
ParseLog(std::string const&, unsigned int&, CmoDateTime&, int&, std::string&) in myLibrary.a(AppLog.o)
"std::string::size() const", referenced from:
mo::CmoParam::WriteToStream(void*, mo::STREAM_STATE*) in myLibrary.a(moParams.o)
"std::string::c_str() const", referenced from:
GetExecutionDir(ECTemplateString<char>&, char*, bool) in myLibrary.a(moPlatForm.o)
CMocaFileTransfer::UpdateParamsForGetTraceFiles(mo::CmoParamList&, long) in myLibrary.a(RobieFileTransfer.o)
CMocaFileTransfer::AddTraceFileForUpload(std::string const&, std::string const&) in myLibrary.a(RobieFileTransfer.o)
CMocaFileTransfer::CreateParamsForSendTraceFiles(mo::CmoObject&) in myLibrary.a(RobieFileTransfer.o)
mo::CmoParam::WriteToStream(void*, mo::STREAM_STATE*) in myLibrary.a(moParams.o)
ParseLog(std::string const&, unsigned int&, CmoDateTime&, int&, std::string&) …Run Code Online (Sandbox Code Playgroud) 应用程序是否可以以编程方式获取安装在iOS设备上的VPN配置文件列表?
我猜这应该是不可能的,因为这些信息位于应用程序的沙箱之外.但是,我已经看到了NetworkExtension带有NEVPNConnection和NEVPNManager类的框架,允许您动态运行VPN.如果您可以动态设置VPN,也可以获取现有的VPN配置文件.
此外,NEVPNManager有以下方法似乎加载一些首选项:
(void)loadFromPreferencesWithCompletionHandler:(void (^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
所以,如果你能告诉我是否有可能获取已安装的VPN配置文件列表,那就太棒了.