我最近开始使用Parse-Server并迁移了我的Parse App,现在当我尝试使用Parse Local DataStore时,我收到以下错误:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Method requires Pinning enabled.'
这是产生错误的代码:
PFQuery *query = [PFQuery queryWithClassName:@"MY_CLASS_NAME"];
[query fromPinWithName:@"PIN_NAME"];
[query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) {
Run Code Online (Sandbox Code Playgroud)
如果我通过调用初始化解析旧方法:
[Parse setApplicationId:@"APP_ID" clientKey:@"KEY"];
Run Code Online (Sandbox Code Playgroud)
然后本地DataStore工作正常,但如果我初始化Parse新方法然后我得到错误:
[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
configuration.applicationId = @"APP_ID";
configuration.clientKey = @"KEY";
configuration.server = @"SERVER";
}]];
Run Code Online (Sandbox Code Playgroud)
[Parse enableLocalDatastore];在Parse被初始化之前我正在打电话,我已经尝试过以后调用它只是为了确定.
感谢您的时间,希望您能提供帮助
试图将ParseLiveQuery cocoapod 集成到我的项目中,但在构建时我不断收到错误:
在框架模块内部包含非模块化标头错误'Bolt.BFCancellation'
我通过cocoapods 安装了ParseLiveQuery(以及Parse).这是我的podfile:
use_frameworks!
pod 'ParseLiveQuery'
pod 'Parse'
post_install do |installer|
installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
end
Run Code Online (Sandbox Code Playgroud)
我还在构建设置中将允许框架模块中的非模块包含设置为是,但仍然会出现此错误.
根据解析服务器迁移指南,我们可以使用Kue和Kue-UI之类的东西来模拟parse.com预定作业功能.
我没有实现Kue或Kue-ui,但是看一下这些指南,它看起来并不像现有的parse.com预定作业那样提供接近相同级别的功能.这个观察是否正确?有人实施了吗?是不是必须通过jue中的Kue安排工作,而Kue-ui只提供工作当前状态的摘要,并且不能通过Kue-ui添加新的时间表?
有没有人试图用Jenkins这样的结果取得同样的结果?所以这就是我的想法:
我可以看到以下好处:
当前parse.com调度作业/云作业唯一可以做到的就是基于jenkins的解决方案无法从下拉列表中选择作业名称来创建新计划.
我错过了什么吗?其他人怎么样呢?谢谢.
到目前为止,我在使用 CocoaPods 时从未遇到任何问题(我使用它几次将 Parse 集成到我的 iOS 应用程序中)。但这一次我对下面的消息感到困惑。
当我之前使用 CocoaPods 时,项目只包含一个目标,这次它包含多个。在这种情况下,可能有一些我不知道的事情需要小心。无论如何,这是我收到的消息:
ld: '..../MyApp/Pods/Parse/libParseLib.a(PFSQLiteDatabase.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE),
obtain an updated library from the vendor, or disable bitcode for this target.
for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我试图在各个级别更改 Enable Bitcode 标志,但无论我做什么,我都会遇到相同的错误。
有没有人遇到过这种问题?或者知道该怎么做?
请注意,此链接与我的问题有关,但不幸的是它没有为我提供有用的答案。
更新:我在后面添加了我在 Xcode 下的日志中获得的全文,以防它可以帮助某人查看问题所在:
Ld /Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Products/Debug-iphoneos/Parse-framework/Parse.framework/Parse normal arm64
cd /Users/georgewhashington/Documents/iOS/MyApp/Pods
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 …Run Code Online (Sandbox Code Playgroud) 我查询服务器以下
let query = PFQuery(className: "posts")
query.whereKey("uuid", equalTo: Ncell.uuidLbl.text!)
query.findObjectsInBackground { (objects:[PFObject]?, error:Error?) in
if error == nil {
for object in objects! {
object.deleteInBackground(block: { (success:Bool, error:Error?) in
if success{
}
})
}
}
}
Run Code Online (Sandbox Code Playgroud)
我想知道是否可以一次删除所有找到的对象以保存请求,而不是使用循环并单独删除每个对象.
我使用与开源 Parse Server 集成的 PostgreSQL 9.5 X64。我的表具有以下结构。
objectId (text with fixed 10 characters),
item_id (integer),
item_name (text with various length)
Run Code Online (Sandbox Code Playgroud)
objectId由于使用 Parse Server,这是主键。它由 Parse Server 自动生成。该item_id不是主键。我想item_id在创建新记录时自动增加 1。这如何在创建表中实现?
我最近遇到了这个问题。是否可以在同一个节点项目中运行reactjs和Parse Server(不是SDK)并接受请求?
如果是这样,怎么办?
我正在 linux vps 上安装解析服务器,我已经安装了 nodejs 和 mongo db,现在 当我尝试执行 $ mongodb-runner 时,我正在关注这里写的内容https://github.com/parse-community/parse-server开始我有这个错误
? Starting a MongoDB deployment to test against...? Downloaded MongoDB 4.2.0
? Starting a MongoDB deployment to test against...mongodb-runner:bin:mongodb-r unner-worker.js Unexpected error. Exiting. { Error: Command failed: mongod --set Parameter enableTestCommands=1 --port 27017 --dbpath /home/admoon/.mongodb/data/ standalone --logpath /home/admoon/.mongodb/runner/standalone.log
mongod: error while loading shared libraries: libcurl.so.4: cannot open shared o bject file: No such file or directory
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at …Run Code Online (Sandbox Code Playgroud) 如何创建 REST 查询以获取分配给用户的所有角色?
由于这是相反方向的多对多关系,因此常规$relatedTo运算符似乎还不够......
parse-server ×10
ios ×4
javascript ×2
bitcode ×1
cocoapods ×1
installation ×1
jobs ×1
kue ×1
mongodb ×1
postgresql ×1
reactjs ×1
sql ×1
swift ×1
xcode ×1