小编Cla*_*aus的帖子

使用TestFlight API提交iOS .app时出错

我正在运行以下脚本:

#!/bin/bash
archive=`./builds/myapp.ipa`
curl http://testflightapp.com/api/builds.json
-F file=$archive
-F api_token='xxxxxxxxxxxxxxxxxxxxxxxxxx'
-F team_token='xxxxxxxxxxxxxxxxxxxxxxxxxx'
-F notes='here comes the new app!' 
-F notify=True
-F distribution_lists='MyFriends'
Run Code Online (Sandbox Code Playgroud)

但是我收到了错误:

您必须提供api_token,team_token,文件和备注(缺少文件)

我实际上是从TestFlight网站复制/过去脚本.这有什么问题?

api bash file-upload testflight

3
推荐指数
1
解决办法
695
查看次数

限制访问Jenkins Web仪表板

目前我在Mac Mini上运行Jenkins,本地网络中的每个人都可以访问该地址的Web仪表板http://<JenkisIP>:8080.如何设置用户名和密码凭据以限制对其的访问?

security passwords login jenkins

3
推荐指数
1
解决办法
4474
查看次数

UIView转换到相同的视图

我有一个UITableView控制器显示静态tableview.我必须更新项目,提供一个辅助模式,它tableview应该翻转并显示不同的数据.我的方法是将两种模式的所有静态单元放在一个大的静态中tableview,执行翻转并隐藏在特定时刻不需要的单元.翻转应仅在其上执行tableviewcontrollerview,因此不会影响navigationbar或主要tabbar.到目前为止,我一直试图用来实现这个简单的魔术的代码是:

// Transition using a page flip.
    [UIView transitionFromView:self.tableview
                        toView:self.tableview
                      duration:0.7
                       options:UIViewAnimationOptionTransitionFlipFromLeft
                    completion:^(BOOL finished) {
                        if (finished) {
                           /* HIDE NOT REQUIRED CELL */

                        }
                }];
Run Code Online (Sandbox Code Playgroud)

不幸的是结果是黑屏.知道怎么解决吗?

transition uitableview uiview uiviewanimationtransition ios

3
推荐指数
1
解决办法
2925
查看次数

用于查找公共事件的FQL查询

我想执行一个FQL查询来检索特定区域中的所有公共事件(使用经度,纬度和最大距离或只是位置名称).你知道这是否可能?

显然,有人能够以某种方式做到这一点:http://elmcity.info/fb_events? location = tokyo

location facebook latitude-longitude facebook-fql facebook-events

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

分组 UITableView 中第一个和最后一个单元格的自定义圆角

我的 iPhone 应用程序当前显示一个包含 2 个部分的分组表。我尝试使用以下方法更改每个部分的第一个和最后一个单元格(或在只有一行的部分的情况下在同一单元格上)的圆角半径:

cell.layer.cornerRadius = 4;
Run Code Online (Sandbox Code Playgroud)

或作用于整个 tableview:

self.tableView.layer.cornerRadius = 4;
Run Code Online (Sandbox Code Playgroud)

但没有运气......当然,我在执行此操作之前已经导入了QuartzCore。看起来只有当表格以普通样式显示时才可以自定义角。

理想的解决方案是自定义第一个角的顶角和最后一个角的底角。

有什么建议?

iphone rounded-corners cornerradius uitableview

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

用Jenkins运行ios-sim

我正在尝试使用ios-sim从命令行启动我的应用程序,但这是我得到的:

Started by user User
Building in workspace /Users/Shared/Jenkins/Home/jobs/UI Testing/workspace
[workspace] $ /bin/sh -xe /var/folders/h4/ws64t3bx2nnds4pg3345xrr000009c/T/hudson6341279754557259451.sh
+ /Users/myUser/Desktop/ios-sim launch /Users/Shared/Jenkins/Home/jobs/Project_Monkey_Build/workspace/build/Debug-iphonesimulator/ProjectMonkey.app

    [DEBUG] Could not start simulator session: Error Domain=DTiPhoneSimulatorErrorDomain Code=5
 "Operation failed with underlying error 4294956486." UserInfo=0x1001b1760 
{NSLocalizedDescription=Operation failed with underlying error 4294956486., 
NSUnderlyingError=0x1001a3390 "The operation couldn’t be completed. (OSStatus error -10810.)"}
Run Code Online (Sandbox Code Playgroud)

它看起来像一个权限问题,因为我可以从终端运行相同的命令,它工作正常.我还试图给ios-sim和MonkeyTalk目录提供完整的777权限,但仍然没有.

任何的想法?

permissions shell jenkins

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

使用UIAppearance代理设置UILabel样式

我的应用程序中有许多UILabel元素,我正在寻找一种使用UIAppearance Proxy对象设置样式的简单方法.我目前的方法是创建配备UI_APPEARANCE_SELECTOR装饰器的UILabel的不同子类,以便通过[UILabelSubclass appearance]调用访问.你可以在这里这里找到我正在使用的参考资料.问题是我不想设置字体大小,只需要依赖于Storyboard中定义的大小的字体系列.

我怎样才能在子类中设置它?

uilabel uifont ios uiappearance

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

运行npm install时有关对等依赖项的警告

我正在尝试使用更新我的React/Firebase项目

npm install --save firebase-functions@latest
Run Code Online (Sandbox Code Playgroud)

我收到很多警告:

npm WARN google-maps-react@2.0.0 requires a peer of react@~0.14.8 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN google-maps-react@2.0.0 requires a peer of react-dom@~0.14.8 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions@1.0.1 requires a peer of firebase-admin@~5.12.0 but none is installed. You must install peer dependencies yourself.
Run Code Online (Sandbox Code Playgroud)

我是新手,所以不确定我应该运行哪个命令来修复警告.

warnings npm firebase reactjs

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

安装到Xcode 4后"Base SDK Missing"

安装xcode 4 preview 5后你好我试图建立一个用Xcode 3.2.3创建的项目.不幸的是会显示一条错误消息:

缺少SDK:没有名称或路径为'/User/Me/Desktop/Project/IPhone4.0'的SDK

有什么想法来解决它吗?

非常感谢

iphone sdk build

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

Firestore 查询返回未定义的快照 (Vue.js / Firestore / Vuefire)

我目前正在使用带有 Vuefire 支持的 Firestore/Vue.js。

Firestore DB 只有一个集合,其中有几个用户:

  • 用户
    • 001
      • 姓名:杰克
      • uid:{Firebase 身份验证 ID}
      • 组织 ID:123
    • 002
      • 姓名:弗兰克
      • uid {Firebase 身份验证 ID}
      • 组织 ID:456

在 Vue 组件中,我尝试查询数据库以获取使用身份验证 ID 的第一个用户(当前存储在 Vuex 存储中)

<script>
import { db } from "../main.js";    
export default {
  data() {
    return {
      items: [] // to be used later
    };
  },
  created() {
    this.getServices();
  },
  methods: {
    getServices() {
      console.log(this.$store.state.user.uid);
      db.collection("users")
        //.doc("001")
        .where("uid", "==", this.$store.state.user.uid)
        .get()
        .then((snapshot) => {
          console.log(snapshot);
          if (snapshot != null && snapshot.data != null) …
Run Code Online (Sandbox Code Playgroud)

javascript firebase vue.js vuefire google-cloud-firestore

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