小编Har*_*lla的帖子

React Native 应用程序中的 PhaseScriptExecution 错误

创建项目后运行 react-native run-ios 时遇到此错误

错误 -

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening BoltAssignment.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace BoltAssignment.xcworkspace -configuration Debug -scheme BoltAssignment -destination id=3E598855-6D4F-4F36-BEE1-8663A1F71787


nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
nvm is not compatible with the "PREFIX" environment variable: currently set to …
Run Code Online (Sandbox Code Playgroud)

xcode ios react-native

28
推荐指数
3
解决办法
7954
查看次数

如何将C#对象列表转换为协议缓冲区列表?

我正在尝试获取我的userDTO对象列表并将其转换为protobuf候选列表,但我无法弄清楚如何做到这一点

C#对象

public class UserDTO
  {
    public string UserNumber { get; set; }
    public string FirstName { get; set; }
    public string LastName  { get; set; }
    public string UserId { get; set; }
    public string EmailId { get; set; }
  }
Run Code Online (Sandbox Code Playgroud)

protobuf的

 message Candidate {
     string userNumber = 1;
     string userId = 2;
     string firstName = 3;
     string lastName = 4;
     string emailId = 5;
    }

message CandidateList{
      repeated Candidate candidateList = 1;
}
Run Code Online (Sandbox Code Playgroud)

列表功能(这是不完整的)

 public CandidateList GetUsersRpc()
     { …
Run Code Online (Sandbox Code Playgroud)

c# protocol-buffers .net-core google-protocol-buffer asp.net-core-2.1

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

如何在 Material UI-REACT 中显示空日期选择器?

目前的实施

<MuiPickersUtilsProvider utils={DateFnsUtils}>
     <DatePicker
      fullWidth
      value={dob}
      label="Date of Birth"
      format="dd / MM / yyyy"
      margin="normal"
      maxDate={new Date()}
      InputProps={{ className: css.datepicker }}
      ></DatePicker>
</MuiPickersUtilsProvider>
Run Code Online (Sandbox Code Playgroud)

CSS 代码

.datepicker {
  margin: 2px 0px 2px 0px;
  height: 60px;
  width: fit-content;
  padding: 20px 15px 10px;
  border-bottom: 2px solid $lightGrey;
  background-color: #fff;
  color: #2c2c2c;
  width: 300px;
  font-weight: 600;
}
Run Code Online (Sandbox Code Playgroud)

空时的当前行为

当前实施

空时的预期行为

预期行为

是否可以按照我预期的外观样式设置 Material UI 日期选择器的样式,如所附图像?

css reactjs material-ui

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

IOS 应用程序在生产构建中首次加载时崩溃 - React Native Expo

我处于一个非常令人困惑的情况,我的 expo 构建的应用程序在我的本地环境中运行得很好,但在使用 EAS 构建之后,当我在 TestFlight 上运行它时,应用程序在第一次加载时崩溃。但令人惊讶的是,当我再次打开时,它工作正常。

基于 App Store 连接崩溃报告的错误

在此输入图像描述

我的崩溃日志服务哨兵上记录了错误 在此输入图像描述

通过当前的调试,我只能发现 EXUpdatesAppController 是一个 expo-updates 模块,但不确定为什么它会抛出异常。

如果有人能帮助我解决这个问题那就太好了,因为我对 Expo 和 React Native 不太有经验

javascript react-native expo expo-updates

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

如何减小 MatSelect DropDown 面板的大小

我正在尝试减小 mat-select 下拉面板的默认大小,但无法弄清楚如何去做

我试过给 width ,试过在 angular mat-select 中覆盖面板类,但尺寸似乎没有减小

我的模板文件

    <div class="col-md-8">
       <mat-form-field style="float: right">
          <mat-select panelclass="my-panel" placeholder="Select Course"(selectionChange)="selectCourse($event,courses)" disableOptionCentering>
         <mat-option *ngFor="let course of courses" [value]="course.courseId">
          {{course.courseCode}}
        </mat-option>
      </mat-select>
    </mat-form-field>
  </div>
Run Code Online (Sandbox Code Playgroud)

我的 CSS 文件

 .my-panel {
   background: orange;
   height: 300px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   min-width: 350px !important;
   }
Run Code Online (Sandbox Code Playgroud)

预期结果 :
预期结果

实际结果 : 实际结果

新问题

angular-material angular angular-material-6

6
推荐指数
2
解决办法
9173
查看次数

.Net Core 2.1是否支持HTTP / 2请求?

我正在.Net Core 2.1应用程序中使用gRPC,但是当我发送请求时,服务器抛出错误,指出

连接ID“”错误的请求数据:“无法识别的HTTP版本:'HTTP / 2.0'

  • Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException:无法识别的HTTP版本:“ HTTP / 2.0”
  • Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.RejectUnknownVersion(字节*版本,Int32长度)
  • Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.ParseRequestLine(TRequestHandler处理程序,Byte *数据,Int32长度)
  • Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser 1.ParseRequestLine(TRequestHandler handler, ReadOnlySequence1&缓冲区,SequencePosition&已消耗,SequencePosition&

c# grpc asp.net-core

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