carloe / licensegenerator-ios Goto Github PK
View Code? Open in Web Editor NEWBuild script that recursively searches for LICENSE files and generates a Settings.bundle friendly plist.
License: MIT License
Build script that recursively searches for LICENSE files and generates a Settings.bundle friendly plist.
License: MIT License
As there is no python in macOS 12.3 the current script is not working.
Any ideas how to fix this, beside installing our own python 2.x and changing the path?
When I try to build the app I get:
credits.py: /usr/bin/python: bad interpreter: No such file or directory
I've installed python but due to system integration protection or something I cannot link it to /usr/bin/python.
Do you know of any fix for this?
Thanks
Default implementation of the LicensesViewController
doesn't respect safe area of the view and when you scroll through data it overlaps interactive controls at the very bottom of the screen. I believe the updateViewConstraints()
needs to be updated per ios 11.
I have a mixed Objective-C and Swift project using LicensesViewController which I have just updated to Swift 4 from Swift 3
However this does now not compile because Objective-C code cannot see open func loadPlist(_ bundle: Bundle, resourceName: String)
. Swift 4 requires explicitly declaring @objc
to functions which are exposed to Objective-C.
Could you please add @objc
to the functions you wish to expose to Objective-C.
When the licence file of the pod is in a directory that is not named after the pod (e.g. not in the root, instead in a subfolder called "foo") you get the wrong title (in this case: "foo").
The actual line of code can be found in credits.py
:
title = path.split("/")[-2]
This just takes the parent of the licence file as title.
Expected Behavior: Title should be "AppCenter"
Actual Behavior: Title is "iOS" (because the parent folder of Licence file is "iOS")
Should add support for SPM in addition to CocoaPods
Nothing appears in the LicensesViewController, and it seems like Credits.plist cannot be loaded properly.
I suspect it's because I didn't do anything in particular to include Credits.plist in the target. Settings.bundle has the target box checked in Target Membership inspector, but there is no checkbox for Root.plist or Credits.plist under it.
So can you please clarify what you mean by "make sure the resulting plist is included in the app target"?
Hey, I really like this :). It lets me include licenses for both code libraries and graphics assets. I've got it working in a production app from my last job! One thing I wonder about though-- what defines the ordering of licenses in the Settings bundle? e.g., in this
SwiftyJSON comes before Alamofire in the list not after as I might expect.
Would you be open to a PR that enables some different sort order? E.g., alphabetic?
Thanks,
Chris.
it works like a charm for iOS but not tvOS (my scenarios)
I suggest placing quotes in the how-to doc around $SRCROOT. Directory spaces will kill the command line and cause Xcode builds to fail.
Upon running I get the following build error:
/Users/georgedendle/Library/Developer/Xcode/DerivedData/GYM_AMIGO-czcrxvthuppywdaoiqdvgzsunpsy/Build/Intermediates.noindex/GYM AMIGO.build/Debug-iphoneos/GYM AMIGO.build/Script-FDFA256422CBC3C30037637F.sh: line 2: ./credits.py: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
This is my run script code
./credits.py -s "$SRCROOT" -o "$SRCROOT/Project/Settings.bundle/Credits.plist"
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.