theos / templates Goto Github PK
View Code? Open in Web Editor NEWTemplates for Theos NIC.
License: Creative Commons Zero v1.0 Universal
Templates for Theos NIC.
License: Creative Commons Zero v1.0 Universal
iphone/preference_bundle_modern
template in NIC doesn't add by default PreferenceLoader as a dependency
On iOS 11+, "tools" are required to have these entitlements otherwise they will crash with Killed: 9
:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>platform-application</key>
<true/>
<key>com.apple.private.security.container-required</key>
<false/>
</dict>
</plist>
Please could you put these entitlements into an ent.xml, and add them to the tool template (setting CODESIGN_FLAGS
of course) so that new tools don't immediately crash when you try to run them?
PREINSTALL_TARGET_PROCESSES
or INSTALL_TARGET_PROCESSES
to kill processes instead of adding the rule at the bottom.Hello, I was wondering if it was possible to get an ios 15 safari extension template for Theos.
This would be very useful for devs who are on Linux or Windows using WSL 2 and don't have a mac option to create Safari extensions for iOS 15 as Safari extensions are becoming a huge thing for iOS 15.
Thank you, Lillie.
make
The compilation fails, because the -fobjc-arc
flag is set in the Makefile is set which enables ARC, while the code uses -[NSObject autorelease]
which does not work with ARC.
I'd expect the project to compile normally since it's a template, but it doesn't because of the problem mentioned above.
$ nic.pl
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/activator_event
[2.] iphone/application_modern
...
Choose a Template (required): 2
Project Name (required): aaa
Package Name [com.yourcompany.aaa]: aaa
Author/Maintainer Name [My Full Name]: aaa
[iphone/application_modern] Class name prefix (two or more characters) [XX]: aaa
Instantiating iphone/application_modern in aaa/...
Done.
$ cd aaa
$ make
> Making all for application aaa…
==> Copying resource directories into the application wrapper…
==> Compiling main.m (armv7)…
==> Compiling aaaAppDelegate.m (armv7)…
==> Compiling aaaRootViewController.m (armv7)…
aaaRootViewController.m:14:170: error: 'autorelease' is unavailable: not
available in automatic reference counting mode
...target:self action:@selector(addButtonTapped:)] autorelease];
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/objc/NSObject.h:38:1: note:
'autorelease' has been explicitly marked unavailable here
- (instancetype)autorelease OBJC_ARC_UNAVAILABLE;
^
aaaRootViewController.m:14:170: error: ARC forbids explicit message send of
'autorelease'
...[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addButtonTapped:)] a...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.
make[3]: *** [/tmp/aaa/.theos/obj/debug/armv7/aaaRootViewController.m.fe5d43d5.o] Error 1
make[2]: *** [/tmp/aaa/.theos/obj/debug/armv7/aaa.app/aaa] Error 2
make[1]: *** [internal-application-all_] Error 2
make: *** [aaa.all.application.variables] Error 2
Operating System: macOS Catalina 10.15.4
Toolchain Version: Xcode 11.4.1
SDK Version: iOS 13.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.