Fastlane frameit交付到App Store时不支持的屏幕尺寸

时间:2019-04-09 11:51:52

标签: screenshot fastlane fastlane-snapshot fastlane-deliver frameit

使用Swift5,iOS-12.2,Xcode-10.2(10E125)并使用Gi​​tLab CI运行所有程序,

在应用发布步骤(使用Fastlane的deliver)中,屏幕截图屏幕尺寸似乎存在问题。截屏效果很好(使用Fastlane的snapshotframeit工具)。

但是更新到最新的iOS,Swift和Xcode版本现在突然打破了我的Fastlane工作示例。我现在收到以下错误:

Unsupported screen size [1446, 2948] for path '/Users/user/Documents/Programieren/iPhone_applications/Learning/Watch/MyApp/builds/aMDc3etB/0/myusername/MyAppName/fastlane/screenshots/de-DE/iPhone 8 Plus-01Screenshot_de_framed.png'

Fastlane可能有问题吗?

  • frameit步骤中执行任一操作(因为框架图像的尺寸大于snapshot创建的图像)
  • 或在应用发布阶段(因为也许Apple更改了可接受的屏幕尺寸)。

我想知道我使用GitLab CI运行所有程序的事实是否会产生影响(但不应如此)。关于deliver步骤中的屏幕截图的屏幕尺寸,Fastlane失败的原因可能是什么?

以iPhone8-Plus为例-我实现的目标:

-> Fastlane snapshot步骤之后的屏幕截图大小为[1242×2208]像素

->在Fastlane frameit步骤之后的截屏尺寸为[1446×2948]像素

Apple App Store要求提供[1242××2208]像素大小的图像-因此,“框架”图像将永远不会被接受!

frameit可能有问题吗?

我应该在Snapfile中选择其他iOS设备(见下文)吗?如果是的话,哪个? (即过去,App Store需要使用iPhone8 Plus尺寸的屏幕截图[5.5“]。这种更改可能是吗?)

这是我的Fastfile:

lane :screenshots do
    snapshot
    frameit(silver: true, path: './fastlane/screenshots')
end

这是我的快照文件:

workspace "MyApp.xcworkspace"
scheme "MyAppUITests"
devices([
    "iPhone 8 Plus",
    "iPhone SE"
])
languages([
    "en-US",
    "de-DE"
])
localize_simulator true
clear_previous_screenshots true
erase_simulator true
reinstall_app true

这是我的Framefile.json文件:

{
    "device_frame_version": "latest",
    "default": {
        "keyword": {
            "fonts": [
                {
                    "font": "./fonts/SF-UI-Display-Semibold.otf",
                    "supported": ["de-DE", "en-US"]
                },
                {
                    "font": "./fonts/Chinese.ttf",
                    "supported": ["zcmn-Hans"]
                }
            ]
        },
        "title": {
            "fonts": [
                {
                    "font": "./fonts/SF-UI-Display-Regular.otf",
                    "supported": ["de-DE", "en-US"]
                },
                {
                    "font": "./fonts/Chinese.ttf",
                    "supported": ["zcmn-Hans"]
                }
            ],
            "color": "#203943"
        },
        "background": "./background.jpg",
        "padding": 50,
        "stack_title" : false,
        "title_below_image": false,
        "show_complete_frame": false,
    },


    "data": [
        {
            "filter": "01",
            "keyword": {
                "color": "#4B849B"
            }
        },
        {
            "filter": "02",
            "keyword": {
                "color": "#4B849B"
            }
        },
        {
            "filter": "03",
            "keyword": {
                "color": "#4B849B"
            }
        },
        {
            "filter": "04",
            "keyword": {
                "color": "#4B849B"
            }
        },
        {
            "filter": "05",
            "keyword": {
                "color": "#4B849B"
            }
        },
        {
            "filter": "06",
            "keyword": {
                "color": "#4B849B"
            }
        }
    ]
}

0 个答案:

没有答案
相关问题