Skip to content

Instantly share code, notes, and snippets.

@plu
Created March 29, 2021 11:23
Show Gist options
  • Save plu/354fe13e1c83937031148ede9022f20e to your computer and use it in GitHub Desktop.
Save plu/354fe13e1c83937031148ede9022f20e to your computer and use it in GitHub Desktop.
Packages/GoogleAnalytics
Packages/GoogleAnalytics/README.md
Packages/GoogleAnalytics/Package.swift
Packages/GoogleAnalytics/GoogleAnalytics.xcframework
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/libGoogleAnalytics.a
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAITrackedViewController.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAI.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAILogger.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAIEcommerceProductAction.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAIEcommerceProduct.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GoogleAnalytics.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAITracker.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAIDictionaryBuilder.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAIEcommerceFields.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/module.modulemap
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAIEcommercePromotion.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-i386_x86_64-simulator/Headers/GAIFields.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/libGoogleAnalytics.a
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAITrackedViewController.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAI.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAILogger.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAIEcommerceProductAction.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAIEcommerceProduct.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GoogleAnalytics.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAITracker.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAIDictionaryBuilder.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAIEcommerceFields.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/module.modulemap
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAIEcommercePromotion.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/Headers/GAIFields.h
Packages/GoogleAnalytics/GoogleAnalytics.xcframework/Info.plist
$ lipo -i Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/libGoogleAnalytics.a
Architectures in the fat file: Packages/GoogleAnalytics/GoogleAnalytics.xcframework/ios-arm64/libGoogleAnalytics.a are: arm64
$ lipo -i Kleinanzeigen.xcarchive/Products/Applications/Kleinanzeigen.app/Frameworks/libGoogleAnalytics.a
Architectures in the fat file: Kleinanzeigen.xcarchive/Products/Applications/Kleinanzeigen.app/Frameworks/libGoogleAnalytics.a are: arm64
$ cat Packages/GoogleAnalytics/Package.swift
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "GoogleAnalytics",
platforms: [.iOS(.v13)],
products: [
.library(name: "GoogleAnalytics", targets: ["GoogleAnalytics"])
],
targets: [
.binaryTarget(
name: "GoogleAnalytics",
path: "GoogleAnalytics.xcframework"
)
]
)
error: exportArchive: IPA processing failed
IDEDistributionPipeline.log
2021-03-29 11:13:09 +0000 Assertion failed: Expected 1 archs in otool output:
Archive : /var/folders/fp/gz36q4614pqcrq79w8g1gf1h394yq6/T/XcodeDistPipeline.~~~jQ6mq7/Root/Payload/Kleinanzeigen.app/Frameworks/libGoogleAnalytics.a (architecture arm64)
/var/folders/fp/gz36q4614pqcrq79w8g1gf1h394yq6/T/XcodeDistPipeline.~~~jQ6mq7/Root/Payload/Kleinanzeigen.app/Frameworks/libGoogleAnalytics.a(GAIUtil.o) (architecture arm64):
@plu
Copy link
Author

plu commented Mar 29, 2021

The XCFramework was built using xcodebuild -create-framework -library ... -headers ... -library ... -headers ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment