草庐IT

product_subtype

全部标签

ios - XCode 获取 "target specifies product type ' com.apple.product-type.bundle.unit-test',但 'iphoneos' 平台没有此类产品类型”

在XCode中运行我的项目时,我的测试给出了这个错误:targetspecifiesproducttype'com.apple.product-type.bundle.unit-test',butthere'snosuchproducttypeforthe'iphoneos'platform它发生在几次XCode更新之后。有谁知道如何解决这个问题? 最佳答案 看起来Xcode6将ocunit测试包的产品标识符从com.apple.product-type.bundle更改为com.apple.product-type.bundle.

ios - 创建了 Apple 推送服务,而不是 Apple Production iOS 推送服务

我正在尝试为生产iOS推送服务创建证书。相反,我获得了Apple推送服务。如何创建专用的AppleProductioniOS推送服务证书?top证书是我以前拿的。最下面的是我现在得到的。我使用Pusher应用程序测试我的推送通知证书,它无法读取新Apple推送服务的p12。 最佳答案 Apple更改了所颁发证书的名称。您现在可以对开发和生产使用相同的证书。虽然您仍然可以申请仅开发证书,但您不能再申请仅生产证书。由于证书的目的不再是生产,只有Apple将通用名称更改为ApplePushServices。证书的功能不受影响。不幸的是,验

ios - Xcode 错误 : Code signing is required for product type 'Application' in SDK 'iOS 10.0'

我在OSXElCapitan上安装了Xcode8。我收到这个错误:Signingfor"target"requiresadevelopmentteam.Selectadevelopmentteamintheprojecteditor.Codesigningisrequiredforproducttype'Application'inSDK'iOS10.0' 最佳答案 将开发者帐户添加到Xcode:按Cmd⌘+,(逗号)转到帐户标签按照下面的屏幕截图启用开发团队:至少在某些情况下,可能还需要在移动设备上信任您的开发者资料。如果您在移动

http - flutter 错误 : type 'AddressInfo' is not a subtype of type 'String' in type cast

我制作了一个模型类并将其转发给一个putapi。但它显示错误type'AddressInfo'isnotasubtypeoftype'String'intypecast该类已正确序列化,我检查了映射的输出。此错误发生在httpput请求期间模型类@JsonSerializable()classAddressInfo{Stringcity;ListoperationAreas=newList();AddressInfo(this.city,this.operationAreas);factoryAddressInfo.fromJson(Mapjson)=>_$AddressInfoFro

flutter : 'Future <dynamic>' is not a subtype of type bool

我试图实现一个简单的登录/注销功能。我的场景是这样的:我有2个页面(登录页面和主页),在main.dart中,我使用SharedPreferences检查用户是否已经登录,如果用户已登录,我在单击按钮时将bool值设置为true。我遇到的问题是,我创建了一个routeLogin函数来在主页和登陆页之间进行选择。我得到这个错误:I/flutter(9026):══╡EXCEPTIONCAUGHTBYWIDGETSLIBRARY╞═══════════════════════════════════════════════════════════I/flutter(9026):Thefol

dart - 获取 _InternalLinkedHashMap<String, dynamic >' is not a subtype of type ' FutureOr<Response>'

我是Dart/Flutter的新手,我正在尝试获取使用网络服务的future结果:Future_readData()async{(...)http.Responseresponse=awaithttp.post(request,headers:{"SOAPAction":"http://www.totvs.com/IwsConsultaSQL/RealizarConsultaSQL","Content-Type":"text/xml;charset=UTF-8","Authorization":"BasicbWVzdHJlOnRvdHZz","cache-control":"no-ca

ios - iOS : Product > Archive fails with 'file not found' 的 Flutter 版本

我正在关注PreparinganiOSAppForReleaseflutter.io指南。flutterbuildios命令成功。但是当我打开Xcode并执行Product>Archive时,我得到了这个错误:cloud_firestore/CloudFirestorePlugin.h'filenotfound 最佳答案 确保打开Runner.xcworkspace而不是Runner.xcodeproj,因为后者无权访问Pod。 关于ios-iOS:Product>Archivefail

android - flutter 错误 : type 'int' is not a subtype of type 'String' in type cast

我正在尝试使用Flutter应用从RESTAPI获取数据。我正在以json_serializable方式构建模型类。下面是我的代码。ma​​in.dartimport'package:flutter/material.dart';import'dart:convert'asconvert;import'package:http/http.dart'ashttp;import'./category.dart';voidmain(){runApp(MyApp());}classMyAppextendsStatefulWidget{@overrideStatecreateState(){//

asynchronous - 未处理的异常 : type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Future<dynamic>'

我收到错误消息:UnhandledException:type'_InternalLinkedHashMap'isnotasubtypeoftype'Future`_LocationScreenState.build.(package:clima/screens/location_screen.dart:71:32)被精确定位的线在里面:FlatButton(onPressed:()async{varweatherData=awaitweather.getLocationWeather();updateUI(weatherData);//weather.getLocationWeath

dart - 如何修复 'String is not subtype of type widget' ?

我正在尝试使用GoogleTranslator库翻译输入文本,但我收到一条错误消息,提示类型String不是类型Widget的子类型我尝试创建一个函数来接收文本并返回翻译后的文本,并在应用程序主体上使用小部件import'package:flutter/material.dart';import'package:translator/translator.dart';voidmain()=>runApp(MyApp());Widgettranslator(Stringinput){GoogleTranslatortranslator=GoogleTranslator();Stringt