Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Architectures, 32bit, 64bit, lipo, ...

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Wed Oct 12, 2016 1:00 pm    Post subject: Architectures, 32bit, 64bit, lipo, ... Reply with quote

MacPorts - Using build_arch

"MacPorts 1.8 introduced a new option to macports.conf: build_arch. This
allows you to control the architecture targeted by builds. For example, you
can use this to build 64bit on 10.5 (where 32bit is the default) or 32bit on
10.6 (where 64bit is usually the default).

Documentation on this feature can be found in the man page for
macports.conf, and also in the Guide."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Wed Oct 12, 2016 1:01 pm    Post subject: Reply with quote

so - How to check if a static library is built for 64-bit?

"I want to make sure that the .a library is properly including that
architecture, but when i run lipo -info on it, I see:

Architectures in the fat file: library.a are: armv7 armv7s (cputype
(16777228) cpusubtype (0))"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Thu Apr 12, 2018 11:07 am    Post subject: Reply with quote

mdfind "(kMDItemExecutableArchitectures == 'i386') && (kMDItemExecutableArchitectures != 'x86_64')"
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3033
Location: Europe

PostPosted: Sat Feb 17, 2024 6:15 pm    Post subject: Reply with quote

so - How to build a static library on M1 mac that supports iOS simulator on Intel mac?

"I have a fat iOS library which supports both real devices (arm64...) and iOS
simulator of Intel Mac (x86_64). But when I switched to M1 mac, things get
tough."


Suson Tapa - Apple Silicon and the library incompatibility problem for iOS development

"So, with Xcode 12 Apple switched Xcode from x86 to ARM so that it can run
natively on M1 Macbook. Simulators before iOS 14 only supported x86 (by
running the Simulator using Rosetta) but the Simulators running iOS 14 and
above support both ARM and x86(using Rosetta), Simulator in this case
actually run natively on M1 but any apps that don't support ARM runs
through Rosetta."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group