- 博客(82)
- 收藏
- 关注
原创 Cocos Creator WebSocket超时问题
Cocos Creator 3.x 里的 SocketRocket 在iOS环境下很容易连接超时,导致反复断线重连。解决办法是增加一个NSTimer,定时发送ping消息,防止连接超时。
2023-08-30 12:34:11 507
原创 XCode 14 编译MacOS APP的问题
1,如果编译时显示找不到 libarclite_macosx.a ,就把Minimum Deployment 版本号提升到 10.13 :2,如果Target里没有 My Mac,就检查 Destination Architectures :
2023-05-04 13:17:00 871
原创 Rustup doc 在Apple M1上运行失败
原因是 Apple Silicon 的分支版本不包含文档。解决方案有两个:1)下载源码,从源码生成文档:git clone GitHub - rust-lang/rust: Empowering everyone to build reliable and efficient software../x.py doc2)安装 x86_64 版本,然后打开那个版本的文档:rustup install stable-x86_64-apple-darwinrustup +sta
2021-10-23 05:14:44 497
原创 Cocos Creator的label文字长度限制
如果用cc.label显示特别长的文字,有可能会显示不出来,需要把 cacheMode 设置为 CHAR ,就可以正常显示了。
2021-10-10 15:47:38 1433
原创 iOS项目编译错误:resource fork, Finder information, or similar detritus not allowed
这种问题一般在改了bundle identifier后出现,解决方法是找到DerivedData目录下该项目的目录,在Terminal命令行里进入这个目录,然后运行:xattr -rc .之后就可以正常编译了。
2020-05-31 07:45:47 1067
原创 MacOS空间清理
Mac电脑现在都用SSD硬盘,速度超快用起来很爽,但价格贵,同样价格下容量比传统硬盘低很多,因此用不了多久就开始捉襟见肘。尤其对于开发者来说,Xcode经常升级,每次升级后旧的模拟器、系统文件、项目缓存文件都不会自动删除,结果就是没用的文件占有越来越多的空间,白白浪费了。今天升级Xcode,系统提示空间不足,无法升级,只能手动清理一下了。下面是清理过程,供有同样问题的朋友参考。首先第一步,通过清空垃圾桶把已经删除文件占用的空间释放出来。如果这样搞了之后空间达到预期,那就可以收工了。如果不行,就继续往
2020-05-27 08:35:10 684
原创 asar文件的生成和解压
1. 安装asarnpm install -g asar2. 压缩文件asar pack <dir> <dir.asar>3. 解压文件asar extract <dir.asar> <dir>
2020-05-14 16:53:11 4346
原创 macOS无法验证此App不包含恶意软件
这个问题导致安卓native 编译时卡死,无法继续编译。解决方法时禁用此验证功能:sudo spctl --master-disable
2020-05-09 18:58:55 2143
原创 MacOS设定某类文件的默认打开程序
MacOS里经常需要设定某类文件的默认打开程序,下面是设置步骤。右键点文件打开Get Info -> Open with 那一栏选择打开程序 -> 点击 Change All按钮。
2020-05-09 18:52:09 600
转载 firestore: storage size calculations
Storage Size CalculationsThis page describes the storage size of documents, document names, fields, and index entries in Cloud Firestore.You can learn about the costs of this storage at Cloud Firestor...
2018-03-03 09:26:12 370
转载 firestore: enable offline data
Enable Offline DataCloud Firestore supports offline data persistence. This feature caches a copy of the Cloud Firestore data that your app is actively using, so your app can access the data when the d...
2018-03-03 09:25:19 412
转载 firestore: manage indexes
Manage Indexes in Cloud FirestoreCloud Firestore requires an index for every query, to ensure the best performance. All document fields are automatically indexed, so queries that only use equality cla...
2018-03-03 09:24:22 288
转载 firestore: paginate data with query cursors
Paginate Data with Query CursorsWith query cursors in Cloud Firestore, you can split data returned by a query into batches according to the parameters you define in your query.Query cursors define the...
2018-03-03 09:23:26 332
转载 firestore: order and limit data
Order and Limit Data with Cloud FirestoreCloud Firestore provides powerful query functionality for specifying which documents you want to retrieve from a collection. These queries can also be used wit...
2018-03-03 09:22:50 287
转载 firestore: query data
Perform Simple and Compound Queries in Cloud FirestoreCloud Firestore provides powerful query functionality for specifying which documents you want to retrieve from a collection. These queries can als...
2018-03-03 09:22:10 323
转载 firestore: get realtime updates
Get Realtime Updates with Cloud FirestoreYou can listen to a document with the onSnapshot() method. An initial call using the callback you provide creates a document snapshot immediately with the curr...
2018-03-03 09:21:37 416
转载 firestore: get data
Get Data with Cloud FirestoreThere are two ways to retrieve data stored in Cloud Firestore. Either of these methods can be used with documents, collections of documents, or the results of queries:Call...
2018-03-03 09:21:05 372
转载 firestore: delete data
Delete Data from Cloud FirestoreTo delete a document, use the delete() method:WEBSWIFTOBJECTIVE-CANDROIDJAVAPYTHONMORE[[[self.db collectionWithPath:@"cities"] documentWithPath:@"DC"] deleteDocument...
2018-03-03 09:20:30 332
转载 firestore: transactions and batch writes
Transactions and Batched WritesCloud Firestore supports atomic operations for reading and writing data. In a set of atomic operations, either all of the operations succeed, or none of them are applied...
2018-03-03 09:19:58 331
转载 firestore: add data
Add Data to Cloud FirestoreThere are several ways to write data to Cloud Firestore:Set the data of a document within a collection, explicitly specifying a document identifier.Add a new document to a c...
2018-03-03 09:19:22 351
转载 firestore data types
Supported Data TypesThis page describes the data types that Cloud Firestore supports.Data typesData typeSort orderNotesArrayNoneCannot contain another array value.Booleanfalse < true—BytesByte orde...
2018-03-03 09:18:47 264
转载 firestore data structure
Choose a Data StructureRemember, when you structure your data in Cloud Firestore, you have a few different options: documents, multiple collections, and subcollections within documents. Consider the a...
2018-03-03 09:18:20 438
转载 Cloud Firestore data model
Cloud Firestore Data ModelCloud Firestore is a NoSQL, document-oriented database. Unlike a SQL database, there are no tables or rows. Instead, you store data in documents, which are organized into col...
2018-03-03 09:17:44 267
转载 Get started with cloud firestore
Get Started with Cloud FirestoreThis quickstart shows you how to set up Cloud Firestore, add data, then view the data you just added in the Firebase console.Create a Cloud Firestore projectOpen the Fi...
2018-03-03 09:08:46 380
转载 do A/B test with firebase remote config
Create Firebase Remote Config Experiments with A/B TestingWhen you are updating your app and using Firebase Remote Config to push it to an application with an active user base, you want to make sure y...
2018-03-03 09:05:52 477
转载 firebase: set user properties
Set User PropertiesUser properties are attributes you define to describe segments of your user base, such as language preference or geographic location.Analytics automatically logs some user propertie...
2018-03-03 09:03:11 481
转载 use firebase remote config
Use Firebase Remote Config on iOSYou can use Firebase Remote Config to define parameters in your app and update their values in the cloud, allowing you to modify the appearance and behavior of your ap...
2018-03-03 07:20:08 635
转载 receive dynamic links on iOS
Receive Dynamic Links on iOSTo receive the Firebase Dynamic Links that you created, you must include the Dynamic Links SDK in your app and call thehandleUniversalLink: and dynamicLinkFromCustomSchemeU...
2018-03-03 07:19:34 363
转载 create firebase dynamic links
Create Dynamic Links on iOSTo create Firebase Dynamic Links, include the Dynamic Links SDK in your app and use theFIRDynamicLinkComponents.url parameter.PrerequisitesFirebase Dynamic Links requires iO...
2018-03-03 07:18:55 1075
转载 firebase invites: send and receive
Send and Receive Firebase Invites from Your iOS AppPrerequisitesFirebase Invites requires iOS 8 or newer. You can target iOS 7 in your app, but all Firebase Invites SDK calls will be no-ops if the app...
2018-03-03 07:18:07 436
转载 firebase database: Extend realtime database with cloud functions
Extend Realtime Database with Cloud FunctionsWith Cloud Functions, you can handle events in the Firebase Realtime Database with no need to update client code. Cloud Functions lets you run database ope...
2018-03-03 07:17:04 219
转载 firebase database: scale with multiple databases
Scale with Multiple DatabasesThe best way to optimize performance and scale your data in Firebase Realtime Database is to split your data across multiple Realtime Database instances, also known as dat...
2018-03-03 07:16:19 213
转载 firebase database: index your data
Index Your DataFirebase allows you to do ad-hoc queries on your data using an arbitrary child key. If you know in advance what your indexes will be, you can define them via the .indexOn rule in your F...
2018-03-03 07:15:38 184
转载 firebase database: user based security
User Based SecurityThis document revisits concepts from Securing Your Data, incorporating the predefined auth variable to create a complete solution for securing our data.Integrating AuthenticationFir...
2018-03-03 07:14:55 425
转载 firebase database: secure your data
Secure Your DataFirebase Database Rules are declarative configuration for your database. This means that the rules are defined separately from the product logic. This has a number of advantages: clien...
2018-03-03 07:13:55 336
转载 get started with database rules
Get Started with Database RulesThe Firebase Realtime Database provides a flexible, expression-based rules language with JavaScript-like syntax to easily define how your data should be structured, how ...
2018-03-03 07:13:22 174
转载 understand firebase realtime database rules
Understand Firebase Realtime Database RulesFirebase Realtime Database Rules determine who has read and write access to your database, how your data is structured, and what indexes exist. These rules l...
2018-03-03 07:11:25 393
转载 best practice of data structure of firebase database
Structure Your DatabaseThis guide covers some of the key concepts in data architecture and best practices for structuring the JSON data in your Firebase Realtime Database.Building a properly structure...
2018-03-03 07:09:03 155
转载 firebase database limit
Realtime Database LimitsThe following are restrictions on data storage and operations in Firebase Realtime Database. To scale beyond any of these limits, use multiple databases.GlobalOperationLimitDes...
2018-03-03 07:08:17 179
转载 understanding firebase database billing
Understand Realtime Database BillingFirebase bills for the data you store in your database and all outbound network traffic at the session layer (layer 5) of the OSI model. Storage is billed at $5 for...
2018-03-03 07:07:38 174
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人