thebaselab / codeapp

Building a full-fledged code editor for iPad
https://code.thebaselab.com
MIT License
2.95k stars 202 forks source link

While building for ios simulator no library for this platform was found in '/.../codeapp/Resources/llvm/clang.xcframwork #1000

Open deniznet opened 9 months ago

deniznet commented 9 months ago

Hello! I tried to build CodeApp, but got errors. I selected CodeUI, selected iOS Simulator, click Build, but in left side appear error "While building for ios simulator no library for this platform was found in '/.../codeapp/Resources/llvm/clang.xcframwork". When I click on this message show dialog "The framework clang.xcframework is unsigned. Xcode will be unable to verify if the author changes.".

I tried uncheck box clang on CodeUI as required, after that building was successfully. So when I run on simulator and iPad I got error when try simple Python "hello world" - "Failed loading python3 from python3_ios.framework/python3_ios, cause = (null)". For JavaScript shown only "node".

What I should do? Thank you!

bummoblizard commented 9 months ago

Hi. CodeUI target does not contain Python or Node run time to speed up the build process. You must build the Code target and install it on an actual device to run these languages in the app.

deniznet commented 9 months ago

Hi. CodeUI target does not contain Python or Node run time to speed up the build process. You must build the Code target and install it on an actual device to run these languages in the app.

Hi! Thank you for answer! I've build with target Code App, connected iPad, tried Run, but Failed install error:

Failed to install the app on the device. Domain: com.apple.dt.CoreDeviceError Code: 3002 User Info: { DVTErrorCreationDateKey = "2024-01-21 06:03:34 +0000"; IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker; NSURL = "file:///Users/deniz/Library/Developer/Xcode/DerivedData/Code-callqtexuyxhsbcrlxejybhjpmaj/Build/Products/Debug-iphoneos/Code.app/"; }

What is wrong?

bummoblizard commented 9 months ago

I am not quite sure. Is there any additional error / logs that I can inspect? Please make sure you used the right signing certificate in the project's settings for both "Code" and "extension" target. Change the bundle identifier if prompted.

aaronsuydam commented 5 months ago

Did you run the download frameworks shell script? I ran into this error and I went back and saw in the readme that they had that noted in there, and it fixed it for me!