LAME.framework for Apple Silicon / M1 - frameworks

I found this for IOS, but I need help getting LAME.framework to build for MacOS intel AND arm64.
https://github.com/Superbil/build-lame-for-iOS/blob/master/build_ios.sh
Can anyone point me to a build script similar to this please? Target is Big Sur if that makes a difference.
Frameworks are a mystery to me so I have been lucky finding these in the past.
No idea how to create this.
PS I did try to change the iphonesdk line(s) to macOS, but it fails (no sdk in path)
Probably not the right way to do it anyway.

Related

Mac equivalent of UIBarButtonSystemItemAction

Is there an equivalent of UIBarButtonSystemItemAction on OS X Mountain Lion ? I did go through the NSSharingService documentation and could not find anything. It should exist as Preview.app and Safari.app display that kind of icon which is not in their resource files (I did go through the files).
Thanks
This is a similar question to this one. Glad it could be of some help. I find it interesting that the Mac sdk and the ios sdk are still different in areas like this.

Guard Malloc doesn't work

I'm experimenting with different profiling options that Xcode provides, but when I enabling Guard Malloc option in Diagnostics tab and trying to run, I'm getting this error with immediate crash:
dyld: could not load inserted library: /usr/lib/libgmalloc.dylib
And it is right, /usr/lib/ doesn't contain this library. I've located it in:
Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/
So I've created link, and started Command Line Tool (just to be sure, because it apparently part of MacOS SDK), enabled Guard Malloc again but the problem remains.
I don't quite get where is a problem: does it new Xcode 4.3 inadvertence, problem with my system or planned decision by Apple to replace it with something else (maybe Instruments)?
on device or simulator?
According to http://developer.apple.com/library/ios/#DOCUMENTATION/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html
You can use this option both Mac apps and also for iPhone applications running in the simulator.
Well, I got stuck by this too. From an apple list:
http://prod.lists.apple.com/archives/xcode-users/2012/Feb/msg00197.html
That's a known issue that's being investigated. I think that you may be able to work around it by installing the 10.7.3 combo installer
Which means you need to download the combo installer from: http://support.apple.com/kb/DL1484?
I'm trying it now to make sure it works, but the person on the mailing list said it worked.
Problem came up again recently, combo update didn't helped (libgmalloc.dylib was in place).
New solution was to Repair Disk Permissions in Disk Utility:
It looks like you can't enable Guard Malloc when debugging directly on a device (at least iPad in my case), even when running the latest and greatest versions of everything. Running still works in the simulator though.

Mac OS X Lion + xCode 4.1 + texturetool = forced mipmaps?

After upgrading to Lion and re-building the project I noticed that Apple's texturetool started to generate mipmaps, although I don't have -m flag in my scripts. I know that mipmaps are useful sometimes and generally it is the way to go to have them, but in this particular app I DO NOT WANT them.
Does anybody know how to switch it off? I would accept any solution (including replacing libraries from older version etc). BTW, using texturetool from old Mac OS doesn't seem to help.
Thanks in advance.
I wrote a c program to remove the mipmaps of a pvr, this can be a work-around while Apple fix it...
I generate the PVR, then strip the mipmaps with this program.
http://dl.dropbox.com/u/7600660/PVRRemoveMipmaps.c
./PVRRemoveMipmaps filename.pvr
edit:
changelog: 1/september/2011 - Fixed a mistake in the header field dataLength of the new PVR without mipmaps.

blackberry deployment and release process

So I'm building a blackberry app and was wondering if there is any good documentation on deployment/release best practices? Blackberry's "A70 – How to Deploy and Distribute Applications" document is kind of lacking.
I guess I'm looking for answers for the following question (Specifically for Over-The-Air aka OTA):
I'm building an app for OS 4.5 and up. Do I need to compile a separate COD/JAD for each version? (i.e. 4.5, 4.6, 4.6.1, 4.7, and 5.0)
How do I detect OS version from the user-agent?
What's the best way to compile COD/JAD files?
anything else that might be good to know :)
Thanks in advance!
No you don't need to compile a separate cod file for each version although my understanding is that OS 5 will run older applications in a compatibility mode which can mess things up so you may want to compile separately for that if there are any problems.
According to Wikipedia the user agent seems to follow the format "BlackBerry / Profile/..."
I'm really not sure what you're looking for here. As far as I know the rapc compiler doesn't have any optimization abilities so however you compile it it's going to produce the same result.

Why does Xcode keep changing its active executable?

Something really weird is going on with Xcode and an iPhone project I'm working on, when I'm building for the simulator, the project has 2 active executables (MyApp - iPhone Simulator (2.0) and MyApp - iPhone Simulator (2.1)) Almost all of the time, I want to use the the 2.1 active executable, but Xcode will occasionally silently change to the 2.0 one.
There doesn't seem to be any pattern to this or any trigger that I can notice. Googling has found a couple of people out there who are having the same problem, but no solutions.
Help me stackoverflow-kenobi! You're my only hope!
Ok, it was a bug. The good news: it's fixed in the fresh new 2.2 SDK.
That is weird -- I've been doing iPhone/XCode development for a while, now, and never seen anything like that.
Are you absolutely certain that you're not poking around some place that's causing the change?
Might you have a corrupt XCode or .xcodeproj? If it persists, I'd try re-creating my project and, if that didn't help, reinstalling XCode.
Very strange, indeed...!
I have the same problem. I need to set the active Executable to 2.1 for openAL to work. The pattern I observed is that it switches back everytime I switch to export to the device. Isn't that what happens with you?
I've seen the issue commented a couple of times on the official iphone dev forum, but no solutions. Looks like a bug.
So.. why are you actually doing that? It is probably better, given the nature of the iPhone (with multiple frameworks for multiple architectures), to set up different Targets for your various projects. The executable produced will be the result of the build phases for your targets.