{"id":13488,"date":"2022-10-04T16:13:06","date_gmt":"2022-10-04T14:13:06","guid":{"rendered":"https:\/\/www.linphone.org\/?post_type=actualites&#038;p=13488"},"modified":"2024-12-02T12:41:36","modified_gmt":"2024-12-02T11:41:36","slug":"xcframeworks-a-revolution-for-mac-and-ios","status":"publish","type":"actualites","link":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/","title":{"rendered":"XCFrameworks, a revolution for Mac and iOS ?"},"content":{"rendered":"<img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/linphone.org\/sites\/default\/files\/xcframeworks_1128_x_500_px-3.png\" \/>\n<p>In November 2020, Apple started releasing Macs with a new class of hardware called the<span style=\"color: #ff5e00;\">\u00a0<strong>M1<\/strong><\/span>, which is a CPU that uses the<strong>\u00a0<span style=\"color: #ff5e00;\">ARM64<\/span><\/strong>\u00a0architecture.<\/p>\n<p>One of the benefits of this change is the ability for iOS apps to also be run on Macs with very little change, since they will both use the same\u00a0<span style=\"color: #ff5e00;\"><strong>ARM64<\/strong><\/span>\u00a0architecture. The\u00a0<strong>M1<\/strong>\u00a0also comes with significant performance and power efficiency improvements.<\/p>\n<p>However, the previous way of linking binary frameworks (&#8220;fat&#8221; frameworks) does not match this new way of building. An error would appear because, although\u00a0<span style=\"color: #ff5e00;\"><strong>ARM64<\/strong><\/span>\u00a0for iPhone and\u00a0<span style=\"color: #ff5e00;\"><strong>ARM64<\/strong><\/span>\u00a0for Mac have the same architecture name, the internal code is very different. The iOS Simulator and iPhone have different rules, and &#8216;lipo&#8217; (the previous way to link binary frameworks) is unable to use a merged binary containing multiple binaries with the same architecture.<\/p>\n<p>This would cause this kind of error when building an app including the linphone-sdk for the simulator: &#8220;building for iOS Simulator, as the linked and embedded framework &#8216;linphone.framework&#8217; was built for iOS + iOS Simulator&#8221;.<\/p>\n<p>But starting from the linphone-sdk 5.2 release, we will be using\u00a0<span style=\"color: #ff5e00;\"><strong>XCFrameworks<\/strong><\/span>. This means that instead of building a single framework with multiple architectures, we will have several small frameworks for each target + architecture combination. This will allow developers to use the linphone-sdk for any apps developed in XCode 12 or newer, and to run their apps for simulators on\u00a0<strong>M1<\/strong>\u00a0Macs as well.<\/p>\n","protected":false},"author":10,"featured_media":13489,"parent":0,"template":"","meta":{"_acf_changed":false,"inline_featured_image":false},"actualites-category":[42],"class_list":["post-13488","actualites","type-actualites","status-publish","has-post-thumbnail","hentry","actualites-category-tech"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>XCFrameworks, a revolution for Mac and iOS ? - Linphone<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"XCFrameworks, a revolution for Mac and iOS ? - Linphone\" \/>\n<meta property=\"og:description\" content=\"In November 2020, Apple started releasing Macs with a new class of hardware called the\u00a0M1, which...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/\" \/>\n<meta property=\"og:site_name\" content=\"Linphone\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-02T11:41:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linphone.org\/wp-content\/uploads\/2022\/10\/xcframeworks_1128_x_500_px-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1128\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/\",\"url\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/\",\"name\":\"XCFrameworks, a revolution for Mac and iOS ? - Linphone\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linphone.org\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/xcframeworks_1128_x_500_px-3.png\",\"datePublished\":\"2022-10-04T14:13:06+00:00\",\"dateModified\":\"2024-12-02T11:41:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linphone.org\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/xcframeworks_1128_x_500_px-3.png\",\"contentUrl\":\"https:\\\/\\\/www.linphone.org\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/xcframeworks_1128_x_500_px-3.png\",\"width\":1128,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/news\\\/xcframeworks-a-revolution-for-mac-and-ios\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"News\",\"item\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/actualites-archives\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"XCFrameworks, a revolution for Mac and iOS ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/\",\"name\":\"Linphone\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linphone.org\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"XCFrameworks, a revolution for Mac and iOS ? - Linphone","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/","og_locale":"en_US","og_type":"article","og_title":"XCFrameworks, a revolution for Mac and iOS ? - Linphone","og_description":"In November 2020, Apple started releasing Macs with a new class of hardware called the\u00a0M1, which...","og_url":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/","og_site_name":"Linphone","article_modified_time":"2024-12-02T11:41:36+00:00","og_image":[{"width":1128,"height":500,"url":"https:\/\/www.linphone.org\/wp-content\/uploads\/2022\/10\/xcframeworks_1128_x_500_px-3.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/","url":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/","name":"XCFrameworks, a revolution for Mac and iOS ? - Linphone","isPartOf":{"@id":"https:\/\/www.linphone.org\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/#primaryimage"},"image":{"@id":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linphone.org\/wp-content\/uploads\/2022\/10\/xcframeworks_1128_x_500_px-3.png","datePublished":"2022-10-04T14:13:06+00:00","dateModified":"2024-12-02T11:41:36+00:00","breadcrumb":{"@id":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/#primaryimage","url":"https:\/\/www.linphone.org\/wp-content\/uploads\/2022\/10\/xcframeworks_1128_x_500_px-3.png","contentUrl":"https:\/\/www.linphone.org\/wp-content\/uploads\/2022\/10\/xcframeworks_1128_x_500_px-3.png","width":1128,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.linphone.org\/en\/news\/xcframeworks-a-revolution-for-mac-and-ios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linphone.org\/en\/"},{"@type":"ListItem","position":2,"name":"News","item":"https:\/\/www.linphone.org\/en\/actualites-archives\/"},{"@type":"ListItem","position":3,"name":"XCFrameworks, a revolution for Mac and iOS ?"}]},{"@type":"WebSite","@id":"https:\/\/www.linphone.org\/en\/#website","url":"https:\/\/www.linphone.org\/en\/","name":"Linphone","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linphone.org\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.linphone.org\/en\/wp-json\/wp\/v2\/actualites\/13488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linphone.org\/en\/wp-json\/wp\/v2\/actualites"}],"about":[{"href":"https:\/\/www.linphone.org\/en\/wp-json\/wp\/v2\/types\/actualites"}],"author":[{"embeddable":true,"href":"https:\/\/www.linphone.org\/en\/wp-json\/wp\/v2\/users\/10"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linphone.org\/en\/wp-json\/wp\/v2\/media\/13489"}],"wp:attachment":[{"href":"https:\/\/www.linphone.org\/en\/wp-json\/wp\/v2\/media?parent=13488"}],"wp:term":[{"taxonomy":"actualites-category","embeddable":true,"href":"https:\/\/www.linphone.org\/en\/wp-json\/wp\/v2\/actualites-category?post=13488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}