Signing an iOS framework plugin for Unity and including it in my Unity app for iOS

huangapple go评论67阅读模式
英文:

Signing an iOS framework plugin for Unity and including it in my Unity app for iOS

问题

I'm trying to build a Unity app for iOS.
我正在尝试构建一个用于iOS的Unity应用程序。

For this app, I'm building a Framework Project in XCode that I will be using as a plugin library.
对于这个应用程序,我正在XCode中构建一个框架项目,将其用作插件库。

I've successfully imported the plugin as a .framework folder and embedded it as a binary.
我已成功导入该插件作为.framework文件夹,并将其嵌入为二进制文件。

However, when I now build the app and deploy it to my iPhone for testing I get the error message "This app cannot be installed because its integrity could not be verified", so it seems like the signing of the plugin is not correct.
然而,当我构建应用程序并将其部署到我的iPhone进行测试时,我收到了错误消息“无法安装此应用程序,因为无法验证其完整性”,因此似乎插件的签名不正确。

If I remove it again, the app works fine.
如果我再次移除它,应用程序就能正常工作。

I tried:
我尝试过:

  1. ...creating a new bundle identifier and a provisioning profile for it and signed it with the bundle identifier. Didn't help.
    ...创建一个新的捆绑标识符和相应的预配文件,并用捆绑标识符签名。没有帮助。

  2. ...signing it with the same identifier as the Unity App. Now the error message just changed to "can't be installed. Try again later".
    ...使用与Unity应用程序相同的标识符签名。现在错误消息只是更改为“无法安装。稍后重试”。

I read that if it's flagged as a developer build I would need to accept a certificate in the devices screen on the iPhone, but no new certificates are showing up there.
我看到,如果它被标记为开发者构建,我需要在iPhone的设备屏幕上接受一个证书,但那里没有显示任何新的证书。

Any thoughts on how to proceed with this? I'm new to Swift development, so I might have missed something simple. I'm using MacInCloud for XCode development, then moving the plugin to my PC, and building and deploying the final app with iOS Project Builder for Unity (which is an amazing plugin).
对于如何继续处理此问题有何想法吗?我是Swift开发的新手,所以可能错过了一些简单的东西。我正在使用MacInCloud进行XCode开发,然后将插件移动到我的PC,并使用Unity的iOS项目生成器构建和部署最终应用程序(这是一个很棒的插件)。

英文:

I'm trying to build a Unity app for iOS.

For this app, I'm building a Framework Project in XCode that I will be using as a plugin library. I've successfully imported the plugin as a .framework folder and embedded it as a binary.

However, when I now build the app and deploy it to my iPhone for testing I get the error message "This app cannot be installed because its integrity could not be verified", so it seems like the signing of the plugin is not correct. If I remove it again, the app works fine.

I tried:

  1. ...creating a new bundle identifier and a provisioning profile for it and signed it with the bundle identifier. Didn't help.
  2. ...signing it with the same identifier as the Unity App. Now the error message just changed to "can't be installed. Try again later"

I read that if it's flagged as a developer build I would need to accept a certificate in the devices screen on the iPhone, but no new certificates are showing up there.

Any thoughts on how to proceed with this? I'm new to Swift development, so I might have missed something simple. I'm using MacInCloud for XCode development, then moving the plugin to my PC, and building and deploying the final app with iOS Project Builder for Unity (which is an amazing plugin).

答案1

得分: 0

我成功解决了我的情况。我重置了所有的证书,然后从头开始。我确保只创建了一个私钥,然后将其导出到我所有其他的环境中,以确保项目的每个部分都使用相同的私钥。这解决了问题。

英文:

I managed to solve my situation. I reset all my certificates and started from scratch. I made sure to only create one private key which I then exported to all my other environments so that every part of the project uses the same private key. This solved the issue.

huangapple
  • 本文由 发表于 2023年5月11日 11:04:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76223882.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定