Issue with building in x
I am trying to build my Pythonista application as a native application using Xcode with a template I found in the forum: https://forum.omz-software.com/topic/5837/xcode-template
The application runs fine in the simulator, but when deploying to my iPhone and trying to run I get the following error:
dyld: Library not loaded: @rpath/Py3Kit.framework/Py3Kit
Referenced from: /private/var/containers/Bundle/Application/C3B68B84-724C-4384-8C42-25246D4698BD/Weather MQTT.app/Weather MQTT
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/C3B68B84-724C-4384-8C42-25246D4698BD/Weather MQTT.app/Frameworks/Py3Kit.framework/Py3Kit: code signature invalid for '/private/var/containers/Bundle/Application/C3B68B84-724C-4384-8C42-25246D4698BD/Weather MQTT.app/Frameworks/Py3Kit.framework/Py3Kit'
/private/var/containers/Bundle/Application/C3B68B84-724C-4384-8C42-25246D4698BD/Weather MQTT.app/Frameworks/Py3Kit.framework/Py3Kit: stat() failed with errno=25
In Xcode I have under Build Phases > Link Binary With Libraries the Py3Kit.framework and i also have it under Build Phases > Embed with a destination value of Frameworks.
Does anyone have any ideas why it is complaining on the path or the code signature?
Google shows some threads on this, unrelated to pythonista...
This one suggested making sure you are using latest iOS 13.4 instead of 13.3. also, may need to reinstall provisioning profiles. And, maybe, you need a paid developer id instead of a free id.
This thread seems to have some other ideas in workarounds. Some settings related to modular headers instead of frameworks.
ular headers instead of frameworks.
Turns out the link you provided from stack overflow was spot on. The upgrade to 13.4 resolved the issue. Thanks
You are probably using free developer account. Apple blocked utilizing external frameworks on free accounts with 13.3.1 upgrade. Try downgrading to 13.3 if still possible or buy Apple Developer License.
UPDATE 04/2020: Upgrading to iOS 13.4 and XCode 11.4 currently solves this issue.
This post is deleted!last edited by