是否可以隐藏.m文件的源代码并使用xcodebuild构建项目
我创建了一个Mac应用程序,可以生成iphone电子书应用程序项目源代码。 我知道我可以使用 xcodebuild 构建项目来获取发布二进制文件。 是否可以隐藏.m文件的源代码(可能存储在内存中)并使用xcodebuild构建项目?
任何评论
谢谢马克
欢迎
I have created a Mac app that can generate iphone ebook app project source codes.
I know I can using xcodebuild to build the project to get the release binary file.
Is it possible to hide the source codes of .m files(maybe store in memory) and build project using xcodebuild?
Welcome any comment
Thanks
Marc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,您正在尝试生成源代码供其他人使用,但随后隐藏它,这样他们就看不到生成的内容。基本上不可能。您可以生成混淆的代码,这会使其更难以阅读,但并非不可能。
实际上,您想要做的是生成模板代码供其他人使用。如果您不希望他们能够看到它,那么您可能不希望他们修改它。最简单的答案就是简单地不做。相反,创建一个包含代码和 IP 的编译静态框架,然后仅生成调用框架的模板。因此您的代码受到保护。
It sounds to me like you are attempting to generate source code for others to use, but then hide it so they cannot see whats been generated. Basically not possible. You could generate obfuscated code which would make it harder to read, but not impossible.
Realistically what you are trying to do is generate template code for others to use. If you don't want them to be able to see it, then you presumably don't want them modifying it. The easiest answer is to simple not do it. Instead, create a compile static framework containing your code and IP, and then only generate templates which makes calls to your framework. Thus your code is protected.
您的问题与编程相关,我不确定您要解决什么问题。
但是,您可以创建 RAM 磁盘,将您的项目存储在那里并对其运行
xcodebuild
。请注意,您并没有真正保护.m
文件,而是限制它们容易可见的时间长度。Your question lives on the edge of being programming related, and I'm not exactly sure what problem you're trying to solve.
However, you can create a RAM disk, store your project there and run
xcodebuild
against that. Just be aware that you're not really protecting the.m
files so much as limiting how long they are easily visible.