Coder Social home page Coder Social logo

theos / templates Goto Github PK

View Code? Open in Web Editor NEW
34.0 9.0 18.0 305 KB

Templates for Theos NIC.

License: Creative Commons Zero v1.0 Universal

Logos 6.59% Makefile 4.00% Shell 0.96% Objective-C 8.55% Swift 3.94% C 74.46% Perl 1.50% MATLAB 0.01%
nic logos objective-c

templates's People

Contributors

kabiroberai avatar kirb avatar l1ghtmann avatar leptos-null avatar luki120 avatar mstg avatar poomsmart avatar uroboro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

templates's Issues

"Tool" template doesn't have any entitlements

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?

Roadmap

  • Copy over templates from https://github.com/theos/theos/tree/master/templates/ios/.
  • Standardize code style and project layout. (Use clang-format?)
  • Add empty app template for objc+iOS beginners to learn UIKit with.
  • Add theme template.
  • Make templates use PREINSTALL_TARGET_PROCESSES or INSTALL_TARGET_PROCESSES to kill processes instead of adding the rule at the bottom.
  • Steal Copy Borrow Xcode's templates.

[Feature Request] iOS 15 Safari Extension Template

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.

iphone/application_modern template will not compile

What are the steps to reproduce this issue?

  1. Create a new project with the template iphone/application_modern
  2. make

What happens?

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.

What were you expecting to happen?

I'd expect the project to compile normally since it's a template, but it doesn't because of the problem mentioned above.

Any logs, error output, etc?

$ 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

What versions of software are you using?

Operating System: macOS Catalina 10.15.4
Toolchain Version: Xcode 11.4.1
SDK Version: iOS 13.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.