小编zee*_*zee的帖子

iPhone App提交 - 错误ITMS-90171无效的捆绑包结构不能包含独立的可执行文件

我已经包含了我收到的完整错误消息的屏幕截图.当我尝试将我的应用程序提交到iTunes Connect时会发生这种情况.运行应用程序时,我没有收到任何错误.

第一个错误

第二个错误

iphone xcode itunesconnect ios

11
推荐指数
2
解决办法
9339
查看次数

Paypal Checkout.js没有调用onAuthorize()

我有以下代码来自https://developer.paypal.com/demo/checkout/#/pattern/confirm

代码正在Paypal结帐页面显示,我可以输入我的所有信息.我遇到的问题是onAuthorize()根本没有被调用.即使我完成一个事务,唯一被调用的是onCancel()函数.

注意:我正在使用此处的测试信用卡https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

        paypal.Button.render({
          // Set your environment
          env: 'sandbox', // sandbox | production
          // Create a PayPal app: https://developer.paypal.com/developer/applications/create
          client: {
            sandbox:    'AY2UxZoOkoWQ0-******',
            production: '' // This is not set
          },
          commit: true, // Set to 'Pay Now'
          payment: function() { // Wait for the PayPal button to be clicked
            // Make a client-side call to the REST api to create the payment
            return paypal.rest.payment.create(this.props.env, this.props.client, {
              transactions: [
                {
                  amount: { total: '10.00', currency: 'USD' } …
Run Code Online (Sandbox Code Playgroud)

javascript paypal paypal-sandbox

7
推荐指数
1
解决办法
514
查看次数

Flutter Firestore查询2个集合

问题已更新

\n\n

我如何\xc2\xa0查询2个集合?I\xc2\xa0 有一个愿望清单集合,其中每个愿望清单文档如下所示:

\n\n
documentID: "some-wishlist-id",\nmodified: "1564061309920",\nproductId: "2tqXaLUDy1IjxLafIu9O",\nuserId: "0uM7Dt286JYK6q8iLFyF4tG9cK53"\n
Run Code Online (Sandbox Code Playgroud)\n\n

还有一个产品集合,其中每个产品文档如下所示。愿望清单集合中的 ProductId 将是产品集合中的 documentID\xc2\xa0:

\n\n
documentID: "2tqXaLUDy1IjxLafIu9O",\ndateCreated: "1563820643577",\ndescription: "This is a description for Product 9",\nimages: ["some_image.jpg"],\nisNegotiable: true,\nisSold: false,\nrentPrice: 200,\nsellPrice: 410,\ntitle: "Product 9",\ntotalWishLists: 0,\nuserId: "0uM7Dt286JYK6q8iLFyF4tG9cK53"\n
Run Code Online (Sandbox Code Playgroud)\n\n

注意:需要明确的是,愿望清单查询应该返回我需要迭代以检索产品的文档列表。

\n\n

不确定在这种情况下 I\xc2\xa0 是否需要使用流或 future,但这就是我到目前为止所拥有的:

\n\n
Future<Product> getProduct(String documentId) {\nreturn Firestore.instance\n    .collection(APIPath.products())\n    .document(documentId)\n    .get()\n    .then((DocumentSnapshot ds) => Product.fromMap(ds.data));\n}\n\nQuery getWishListByUser(userId) {\n    return Firestore.instance\n        .collection(APIPath.wishlists())\n        .where(\'userId\', isEqualTo: userId);\n}\n\nFuture<List<Product>> getProductsWishList(userId) async {\n    List<Product> _products = [];\n\n    await getWishListByUser(userId)\n        .snapshots()\n        .forEach((QuerySnapshot snapshot) {\n      snapshot.documents.forEach((DocumentSnapshot snapshot) async {\n …
Run Code Online (Sandbox Code Playgroud)

dart firebase flutter google-cloud-firestore

5
推荐指数
1
解决办法
7833
查看次数

Flutter Firebase 通过 ID 数组获取文档

如何使用 ID 列表从集合中获取文档查询?假设我有以下内容:

List<String> someList = ['abc123', 'def456', 'hij789']; // Need to query for these documentIDs
Run Code Online (Sandbox Code Playgroud)

我通常会做以下事情。但这显然行不通,因为我需要查询文档ID。

Query query = Firestore.instance
        .collection(APIPath.products())
        .where('someField', whereIn: someList);
Run Code Online (Sandbox Code Playgroud)

firebase flutter google-cloud-firestore

4
推荐指数
1
解决办法
2032
查看次数

错误:使用mp3文件时,文件名必须以.xml或.png结尾

我在Android Studio上使用Gradle 1.5.0.项目与Gradle同步没有任何问题,但是当我运行应用程序时,我收到以下错误消息

Error:Execution failed for task ':App:mergeDebugResources'.
/Users/Zee/Repos/App/res/drawable/notification.mp3: Error: The filename must end with .xml or .png
Run Code Online (Sandbox Code Playgroud)

使用mp3文件,所以不知道该做什么.任何帮助深表感谢.

android build.gradle android-gradle-plugin

2
推荐指数
1
解决办法
1万
查看次数