diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..18bd0ac --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Pull Request Build + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Show destinations + run: xcodebuild -scheme ETTrace -showdestinations + - name: Build ETTrace for iOS Simulator + run: xcodebuild build -scheme ETTrace -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' CLANG_CXX_LANGUAGE_STANDARD=c++17 + - name: Build ETTrace for iOS + run: xcodebuild build -scheme ETTrace -sdk iphoneos -destination 'generic/platform=iOS' CLANG_CXX_LANGUAGE_STANDARD=c++17 + - name: Build ETTrace for macOS + run: xcodebuild build -scheme ETTraceRunner -sdk macosx -destination 'generic/platform=macOS' ONLY_ACTIVE_ARCH=NO \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..97bb22d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release Workflow + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Signing Certificate + uses: apple-actions/import-codesign-certs@v2 + with: + p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} + p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} + - name: Build ETTrace xcframework + run: sh build.sh + - name: Zip xcframework + run: zip -r ETTrace.xcframework.zip ETTrace.xcframework + - name: Build ETTraceRunner + run: sh build_runner.sh + env: + SIGNING_IDENTITY: ${{ secrets.SIGNING_IDENTITY }} + - name: Upload Artifact + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + ETTrace.xcframework.zip + ETTraceRunner + body: + Release ${{ github.ref }} + Automated release created by GitHub Actions. diff --git a/.gitignore b/.gitignore index c91107b..62c9364 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ **/*.xcodeproj/xcshareddata/ ETTrace-iphonesimulator.xcarchive/ ETTrace-iphoneos.xcarchive/ -ETTrace.xcframework/ +./ETTrace.xcframework/ output.json output.folded +.swiftpm \ No newline at end of file diff --git a/ETTrace/CommunicationFrame/EMGDummyEmptyClass.h b/ETTrace/CommunicationFrame/EMGDummyEmptyClass.h new file mode 100644 index 0000000..8c0166a --- /dev/null +++ b/ETTrace/CommunicationFrame/EMGDummyEmptyClass.h @@ -0,0 +1,18 @@ +// +// DummyEmptyClass.h +// +// +// Created by Itay Brenner on 2/6/23. +// + +#import + +// This class is required becasue SPM doesn't support header only targets + +NS_ASSUME_NONNULL_BEGIN + +@interface EMGDummyEmptyClass : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ETTrace/CommunicationFrame/EMGDummyEmptyClass.m b/ETTrace/CommunicationFrame/EMGDummyEmptyClass.m new file mode 100644 index 0000000..d68e4e7 --- /dev/null +++ b/ETTrace/CommunicationFrame/EMGDummyEmptyClass.m @@ -0,0 +1,14 @@ +// +// DummyEmptyClass.m +// +// +// Created by Itay Brenner on 2/6/23. +// + +#import "EMGDummyEmptyClass.h" + +// This class is required becasue SPM doesn't support header only targets + +@implementation EMGDummyEmptyClass + +@end diff --git a/ETTrace/CommunicationFrame/CommunicationFrame.h b/ETTrace/CommunicationFrame/Public/CommunicationFrame.h similarity index 100% rename from ETTrace/CommunicationFrame/CommunicationFrame.h rename to ETTrace/CommunicationFrame/Public/CommunicationFrame.h diff --git a/ETTrace/ETModels/ETModels.h b/ETTrace/ETModels/ETModels.h deleted file mode 100644 index 011dee6..0000000 --- a/ETTrace/ETModels/ETModels.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// ETModels.h -// ETModels -// -// Created by Noah Martin on 4/13/23. -// - -#import - -//! Project version number for ETModels. -FOUNDATION_EXPORT double ETModelsVersionNumber; - -//! Project version string for ETModels. -FOUNDATION_EXPORT const unsigned char ETModelsVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/ETTrace/ETTrace.xcodeproj/project.pbxproj b/ETTrace/ETTrace.xcodeproj/project.pbxproj deleted file mode 100644 index 35806d8..0000000 --- a/ETTrace/ETTrace.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1070 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 56; - objects = { - -/* Begin PBXBuildFile section */ - 5FC3BBBF4C1E01F2CE8FB1C6 /* Pods_ETTraceRunner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61427A7CF36874E9A87DFF7F /* Pods_ETTraceRunner.framework */; }; - B8936976E036B5F8C74424D2 /* Pods_ETTrace.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BB931BCD99ECB5262B41EE99 /* Pods_ETTrace.framework */; }; - F4BDB1E229B68B0B00996FDB /* CommunicationFrame.h in Headers */ = {isa = PBXBuildFile; fileRef = F4BDB1E129B68B0B00996FDB /* CommunicationFrame.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F4BDB1EE29B68D7900996FDB /* EMGChannelListener.h in Headers */ = {isa = PBXBuildFile; fileRef = F4BDB1EC29B68D7900996FDB /* EMGChannelListener.h */; }; - F4BDB1EF29B68D7900996FDB /* EMGChannelListener.m in Sources */ = {isa = PBXBuildFile; fileRef = F4BDB1ED29B68D7900996FDB /* EMGChannelListener.m */; }; - F4BDB1F229B690B000996FDB /* EMGPerfAnalysis_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = F4BDB1F029B6909C00996FDB /* EMGPerfAnalysis_Private.h */; }; - F4BDB1FA29B6932F00996FDB /* PerfAnalysisRunner.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4BDB1F929B6932F00996FDB /* PerfAnalysisRunner.swift */; }; - F4BDB20529B693BB00996FDB /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = F4BDB20429B693BB00996FDB /* ArgumentParser */; }; - F4BDB20929B6942100996FDB /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = F4BDB20829B6942100996FDB /* ArgumentParser */; }; - F4BDB20C29B695A600996FDB /* SimulatorDeviceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4BDB20B29B695A600996FDB /* SimulatorDeviceManager.swift */; }; - F4BDB20F29B6965200996FDB /* Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4BDB20E29B6965200996FDB /* Utils.swift */; }; - F4BDB21129B697D200996FDB /* DeviceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4BDB21029B697D200996FDB /* DeviceManager.swift */; }; - F4BDB21329B6981000996FDB /* PhysicalDeviceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4BDB21229B6981000996FDB /* PhysicalDeviceManager.swift */; }; - F4CB9D3529B7C49000F50446 /* ResponseModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4CB9D3429B7C49000F50446 /* ResponseModel.swift */; }; - F4CB9D3729B7C4BE00F50446 /* Symbolicator.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4CB9D3629B7C4BE00F50446 /* Symbolicator.swift */; }; - F4CB9D3929B7C50400F50446 /* FlamegraphGenerator.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4CB9D3829B7C50400F50446 /* FlamegraphGenerator.swift */; }; - F4CB9D3F29B907DE00F50446 /* RunnerHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4CB9D3E29B907DE00F50446 /* RunnerHelper.swift */; }; - FA172EC129E70EBF009D3BF8 /* CommunicationChannel.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA172EC029E70EBF009D3BF8 /* CommunicationChannel.swift */; }; - FA1A91A2294373F600D70989 /* PerfAnalysis.h in Headers */ = {isa = PBXBuildFile; fileRef = FA1A91A1294373F600D70989 /* PerfAnalysis.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FA1A91A92943741600D70989 /* EMGPerfAnalysis.mm in Sources */ = {isa = PBXBuildFile; fileRef = FA1A91A82943741600D70989 /* EMGPerfAnalysis.mm */; }; - FA1A91AC2943748100D70989 /* EMGWriteLibraries.m in Sources */ = {isa = PBXBuildFile; fileRef = FA1A91AB2943748100D70989 /* EMGWriteLibraries.m */; }; - FA5D8DA029E892FA006BEBF4 /* JSONWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = FA5D8D9F29E892FA006BEBF4 /* JSONWrapper.m */; }; - FA5D8DD629E899CC006BEBF4 /* ETModels.h in Headers */ = {isa = PBXBuildFile; fileRef = FA5D8DD529E899CC006BEBF4 /* ETModels.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FA5D8DDA29E899D3006BEBF4 /* FlameNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA5D8DA829E89797006BEBF4 /* FlameNode.swift */; }; - FA5D8DDB29E899D3006BEBF4 /* Sample.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4CB9D3129B7C35B00F50446 /* Sample.swift */; }; - FACBF6F12A2CD90B00FDFA1E /* Swifter in Frameworks */ = {isa = PBXBuildFile; productRef = FACBF6F02A2CD90B00FDFA1E /* Swifter */; }; - FACBF6F32A2CDD8600FDFA1E /* Swifter in Frameworks */ = {isa = PBXBuildFile; productRef = FACBF6F22A2CDD8600FDFA1E /* Swifter */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - F4BDB1E629B68BCD00996FDB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = FA1A9195294373F600D70989 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F4BDB1DE29B68B0B00996FDB; - remoteInfo = CommunicationFrame; - }; - F4BDB1FE29B6933700996FDB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = FA1A9195294373F600D70989 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F4BDB1DE29B68B0B00996FDB; - remoteInfo = CommunicationFrame; - }; - FA5D8DDC29E899FE006BEBF4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = FA1A9195294373F600D70989 /* Project object */; - proxyType = 1; - remoteGlobalIDString = FA5D8DD229E899CB006BEBF4; - remoteInfo = ETModels; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - F4BDB1F529B6932F00996FDB /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = /usr/share/man/man1/; - dstSubfolderSpec = 0; - files = ( - ); - runOnlyForDeploymentPostprocessing = 1; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 1FBF0AED1A96804F57717F27 /* Pods-ETTraceRunner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ETTraceRunner.debug.xcconfig"; path = "Target Support Files/Pods-ETTraceRunner/Pods-ETTraceRunner.debug.xcconfig"; sourceTree = ""; }; - 26C10ACD7D67B0FE1AFD5254 /* Pods-ETTraceRunner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ETTraceRunner.release.xcconfig"; path = "Target Support Files/Pods-ETTraceRunner/Pods-ETTraceRunner.release.xcconfig"; sourceTree = ""; }; - 2B02693057FEE85AD8F7A187 /* Pods-PerfAnalysis.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PerfAnalysis.debug.xcconfig"; path = "Target Support Files/Pods-PerfAnalysis/Pods-PerfAnalysis.debug.xcconfig"; sourceTree = ""; }; - 3206ACCA71FAF70F8CA6EFB4 /* Pods-PerfAnalysisRunner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PerfAnalysisRunner.debug.xcconfig"; path = "Target Support Files/Pods-PerfAnalysisRunner/Pods-PerfAnalysisRunner.debug.xcconfig"; sourceTree = ""; }; - 61427A7CF36874E9A87DFF7F /* Pods_ETTraceRunner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ETTraceRunner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 8DEFA371953DD70D035FA46D /* Pods-PerfAnalysisRunner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PerfAnalysisRunner.release.xcconfig"; path = "Target Support Files/Pods-PerfAnalysisRunner/Pods-PerfAnalysisRunner.release.xcconfig"; sourceTree = ""; }; - 92A08BEC22631FE4409E22EB /* Pods-PerfAnalysis.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PerfAnalysis.release.xcconfig"; path = "Target Support Files/Pods-PerfAnalysis/Pods-PerfAnalysis.release.xcconfig"; sourceTree = ""; }; - 92BA8E32F1513EFDC8771338 /* Pods-ETTrace.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ETTrace.release.xcconfig"; path = "Target Support Files/Pods-ETTrace/Pods-ETTrace.release.xcconfig"; sourceTree = ""; }; - BB931BCD99ECB5262B41EE99 /* Pods_ETTrace.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ETTrace.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - F4BDB1DF29B68B0B00996FDB /* CommunicationFrame.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CommunicationFrame.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - F4BDB1E129B68B0B00996FDB /* CommunicationFrame.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CommunicationFrame.h; sourceTree = ""; }; - F4BDB1EC29B68D7900996FDB /* EMGChannelListener.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EMGChannelListener.h; sourceTree = ""; }; - F4BDB1ED29B68D7900996FDB /* EMGChannelListener.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EMGChannelListener.m; sourceTree = ""; }; - F4BDB1F029B6909C00996FDB /* EMGPerfAnalysis_Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EMGPerfAnalysis_Private.h; sourceTree = ""; }; - F4BDB1F729B6932F00996FDB /* ETTraceRunner */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ETTraceRunner; sourceTree = BUILT_PRODUCTS_DIR; }; - F4BDB1F929B6932F00996FDB /* PerfAnalysisRunner.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PerfAnalysisRunner.swift; sourceTree = ""; }; - F4BDB20B29B695A600996FDB /* SimulatorDeviceManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimulatorDeviceManager.swift; sourceTree = ""; }; - F4BDB20E29B6965200996FDB /* Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = ""; }; - F4BDB21029B697D200996FDB /* DeviceManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceManager.swift; sourceTree = ""; }; - F4BDB21229B6981000996FDB /* PhysicalDeviceManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhysicalDeviceManager.swift; sourceTree = ""; }; - F4CB9D2829B6A8CF00F50446 /* ETTraceRunner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ETTraceRunner.entitlements; sourceTree = ""; }; - F4CB9D3129B7C35B00F50446 /* Sample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Sample.swift; sourceTree = ""; }; - F4CB9D3429B7C49000F50446 /* ResponseModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResponseModel.swift; sourceTree = ""; }; - F4CB9D3629B7C4BE00F50446 /* Symbolicator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Symbolicator.swift; sourceTree = ""; }; - F4CB9D3829B7C50400F50446 /* FlamegraphGenerator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlamegraphGenerator.swift; sourceTree = ""; }; - F4CB9D3E29B907DE00F50446 /* RunnerHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerHelper.swift; sourceTree = ""; }; - F99E9B15EA3CFAAF648C921D /* Pods-ETTrace.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ETTrace.debug.xcconfig"; path = "Target Support Files/Pods-ETTrace/Pods-ETTrace.debug.xcconfig"; sourceTree = ""; }; - FA172EC029E70EBF009D3BF8 /* CommunicationChannel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommunicationChannel.swift; sourceTree = ""; }; - FA1A919E294373F600D70989 /* ETTrace.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ETTrace.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FA1A91A1294373F600D70989 /* PerfAnalysis.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PerfAnalysis.h; sourceTree = ""; }; - FA1A91A82943741600D70989 /* EMGPerfAnalysis.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = EMGPerfAnalysis.mm; sourceTree = ""; }; - FA1A91AA2943744D00D70989 /* EMGWriteLibraries.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EMGWriteLibraries.h; sourceTree = ""; }; - FA1A91AB2943748100D70989 /* EMGWriteLibraries.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EMGWriteLibraries.m; sourceTree = ""; }; - FA5D8D9E29E892F9006BEBF4 /* ETTraceRunner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ETTraceRunner-Bridging-Header.h"; sourceTree = ""; }; - FA5D8D9F29E892FA006BEBF4 /* JSONWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JSONWrapper.m; sourceTree = ""; }; - FA5D8DA129E8933C006BEBF4 /* JSONWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = JSONWrapper.h; sourceTree = ""; }; - FA5D8DA829E89797006BEBF4 /* FlameNode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlameNode.swift; sourceTree = ""; }; - FA5D8DD329E899CC006BEBF4 /* ETModels.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ETModels.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FA5D8DD529E899CC006BEBF4 /* ETModels.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ETModels.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - F4BDB1DC29B68B0B00996FDB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F4BDB1F429B6932F00996FDB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - FACBF6F32A2CDD8600FDFA1E /* Swifter in Frameworks */, - F4BDB20929B6942100996FDB /* ArgumentParser in Frameworks */, - 5FC3BBBF4C1E01F2CE8FB1C6 /* Pods_ETTraceRunner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA1A919B294373F600D70989 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - FACBF6F12A2CD90B00FDFA1E /* Swifter in Frameworks */, - F4BDB20529B693BB00996FDB /* ArgumentParser in Frameworks */, - B8936976E036B5F8C74424D2 /* Pods_ETTrace.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA5D8DD029E899CB006BEBF4 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 88B083935BBF36B4FEC45A6F /* Frameworks */ = { - isa = PBXGroup; - children = ( - BB931BCD99ECB5262B41EE99 /* Pods_ETTrace.framework */, - 61427A7CF36874E9A87DFF7F /* Pods_ETTraceRunner.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - F0EB7EFAD45DEFB62FC3CE49 /* Pods */ = { - isa = PBXGroup; - children = ( - 2B02693057FEE85AD8F7A187 /* Pods-PerfAnalysis.debug.xcconfig */, - 92A08BEC22631FE4409E22EB /* Pods-PerfAnalysis.release.xcconfig */, - 3206ACCA71FAF70F8CA6EFB4 /* Pods-PerfAnalysisRunner.debug.xcconfig */, - 8DEFA371953DD70D035FA46D /* Pods-PerfAnalysisRunner.release.xcconfig */, - F99E9B15EA3CFAAF648C921D /* Pods-ETTrace.debug.xcconfig */, - 92BA8E32F1513EFDC8771338 /* Pods-ETTrace.release.xcconfig */, - 1FBF0AED1A96804F57717F27 /* Pods-ETTraceRunner.debug.xcconfig */, - 26C10ACD7D67B0FE1AFD5254 /* Pods-ETTraceRunner.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; - F4BDB1E029B68B0B00996FDB /* CommunicationFrame */ = { - isa = PBXGroup; - children = ( - F4BDB1E129B68B0B00996FDB /* CommunicationFrame.h */, - ); - path = CommunicationFrame; - sourceTree = ""; - }; - F4BDB1F829B6932F00996FDB /* ETTraceRunner */ = { - isa = PBXGroup; - children = ( - F4CB9D2829B6A8CF00F50446 /* ETTraceRunner.entitlements */, - F4CB9D3329B7C48300F50446 /* ResponseModels */, - F4BDB20D29B6964900996FDB /* Utils */, - F4BDB20A29B6959000996FDB /* Devices */, - F4BDB1F929B6932F00996FDB /* PerfAnalysisRunner.swift */, - F4CB9D3E29B907DE00F50446 /* RunnerHelper.swift */, - FA5D8D9F29E892FA006BEBF4 /* JSONWrapper.m */, - FA5D8DA129E8933C006BEBF4 /* JSONWrapper.h */, - FA5D8D9E29E892F9006BEBF4 /* ETTraceRunner-Bridging-Header.h */, - ); - path = ETTraceRunner; - sourceTree = ""; - }; - F4BDB20A29B6959000996FDB /* Devices */ = { - isa = PBXGroup; - children = ( - F4BDB21029B697D200996FDB /* DeviceManager.swift */, - FA172EC029E70EBF009D3BF8 /* CommunicationChannel.swift */, - F4BDB20B29B695A600996FDB /* SimulatorDeviceManager.swift */, - F4BDB21229B6981000996FDB /* PhysicalDeviceManager.swift */, - ); - path = Devices; - sourceTree = ""; - }; - F4BDB20D29B6964900996FDB /* Utils */ = { - isa = PBXGroup; - children = ( - F4BDB20E29B6965200996FDB /* Utils.swift */, - F4CB9D3629B7C4BE00F50446 /* Symbolicator.swift */, - F4CB9D3829B7C50400F50446 /* FlamegraphGenerator.swift */, - ); - path = Utils; - sourceTree = ""; - }; - F4CB9D3329B7C48300F50446 /* ResponseModels */ = { - isa = PBXGroup; - children = ( - F4CB9D3429B7C49000F50446 /* ResponseModel.swift */, - ); - path = ResponseModels; - sourceTree = ""; - }; - FA1A9194294373F600D70989 = { - isa = PBXGroup; - children = ( - FA1A91A0294373F600D70989 /* ETTrace */, - F4BDB1E029B68B0B00996FDB /* CommunicationFrame */, - F4BDB1F829B6932F00996FDB /* ETTraceRunner */, - FA5D8DD429E899CC006BEBF4 /* ETModels */, - FA1A919F294373F600D70989 /* Products */, - F0EB7EFAD45DEFB62FC3CE49 /* Pods */, - 88B083935BBF36B4FEC45A6F /* Frameworks */, - ); - sourceTree = ""; - }; - FA1A919F294373F600D70989 /* Products */ = { - isa = PBXGroup; - children = ( - FA1A919E294373F600D70989 /* ETTrace.framework */, - F4BDB1DF29B68B0B00996FDB /* CommunicationFrame.framework */, - F4BDB1F729B6932F00996FDB /* ETTraceRunner */, - FA5D8DD329E899CC006BEBF4 /* ETModels.framework */, - ); - name = Products; - sourceTree = ""; - }; - FA1A91A0294373F600D70989 /* ETTrace */ = { - isa = PBXGroup; - children = ( - FA1A91A1294373F600D70989 /* PerfAnalysis.h */, - FA1A91A82943741600D70989 /* EMGPerfAnalysis.mm */, - F4BDB1F029B6909C00996FDB /* EMGPerfAnalysis_Private.h */, - FA1A91AA2943744D00D70989 /* EMGWriteLibraries.h */, - FA1A91AB2943748100D70989 /* EMGWriteLibraries.m */, - F4BDB1EC29B68D7900996FDB /* EMGChannelListener.h */, - F4BDB1ED29B68D7900996FDB /* EMGChannelListener.m */, - ); - path = ETTrace; - sourceTree = ""; - }; - FA5D8DD429E899CC006BEBF4 /* ETModels */ = { - isa = PBXGroup; - children = ( - F4CB9D3129B7C35B00F50446 /* Sample.swift */, - FA5D8DA829E89797006BEBF4 /* FlameNode.swift */, - FA5D8DD529E899CC006BEBF4 /* ETModels.h */, - ); - path = ETModels; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - F4BDB1DA29B68B0B00996FDB /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - F4BDB1E229B68B0B00996FDB /* CommunicationFrame.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA1A9199294373F600D70989 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - F4BDB1EE29B68D7900996FDB /* EMGChannelListener.h in Headers */, - F4BDB1F229B690B000996FDB /* EMGPerfAnalysis_Private.h in Headers */, - FA1A91A2294373F600D70989 /* PerfAnalysis.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA5D8DCE29E899CB006BEBF4 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - FA5D8DD629E899CC006BEBF4 /* ETModels.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - F4BDB1DE29B68B0B00996FDB /* CommunicationFrame */ = { - isa = PBXNativeTarget; - buildConfigurationList = F4BDB1E529B68B0B00996FDB /* Build configuration list for PBXNativeTarget "CommunicationFrame" */; - buildPhases = ( - F4BDB1DA29B68B0B00996FDB /* Headers */, - F4BDB1DB29B68B0B00996FDB /* Sources */, - F4BDB1DC29B68B0B00996FDB /* Frameworks */, - F4BDB1DD29B68B0B00996FDB /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = CommunicationFrame; - productName = CommunicationFrame; - productReference = F4BDB1DF29B68B0B00996FDB /* CommunicationFrame.framework */; - productType = "com.apple.product-type.framework"; - }; - F4BDB1F629B6932F00996FDB /* ETTraceRunner */ = { - isa = PBXNativeTarget; - buildConfigurationList = F4BDB1FB29B6932F00996FDB /* Build configuration list for PBXNativeTarget "ETTraceRunner" */; - buildPhases = ( - D00D689D560546078E0E1DD6 /* [CP] Check Pods Manifest.lock */, - F4BDB1F329B6932F00996FDB /* Sources */, - F4BDB1F429B6932F00996FDB /* Frameworks */, - F4BDB1F529B6932F00996FDB /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - FA5D8DDD29E899FE006BEBF4 /* PBXTargetDependency */, - F4BDB20729B693CA00996FDB /* PBXTargetDependency */, - F4BDB1FF29B6933700996FDB /* PBXTargetDependency */, - ); - name = ETTraceRunner; - packageProductDependencies = ( - F4BDB20829B6942100996FDB /* ArgumentParser */, - FACBF6F22A2CDD8600FDFA1E /* Swifter */, - ); - productName = PerfAnalysisRunner; - productReference = F4BDB1F729B6932F00996FDB /* ETTraceRunner */; - productType = "com.apple.product-type.tool"; - }; - FA1A919D294373F600D70989 /* ETTrace */ = { - isa = PBXNativeTarget; - buildConfigurationList = FA1A91A5294373F600D70989 /* Build configuration list for PBXNativeTarget "ETTrace" */; - buildPhases = ( - ED631DFE54EB91FF8D7FDE6D /* [CP] Check Pods Manifest.lock */, - FA1A9199294373F600D70989 /* Headers */, - FA1A919A294373F600D70989 /* Sources */, - FA1A919B294373F600D70989 /* Frameworks */, - FA1A919C294373F600D70989 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - F4BDB1E729B68BCD00996FDB /* PBXTargetDependency */, - ); - name = ETTrace; - packageProductDependencies = ( - F4BDB20429B693BB00996FDB /* ArgumentParser */, - FACBF6F02A2CD90B00FDFA1E /* Swifter */, - ); - productName = PerfAnalysis; - productReference = FA1A919E294373F600D70989 /* ETTrace.framework */; - productType = "com.apple.product-type.framework"; - }; - FA5D8DD229E899CB006BEBF4 /* ETModels */ = { - isa = PBXNativeTarget; - buildConfigurationList = FA5D8DD729E899CC006BEBF4 /* Build configuration list for PBXNativeTarget "ETModels" */; - buildPhases = ( - FA5D8DCE29E899CB006BEBF4 /* Headers */, - FA5D8DCF29E899CB006BEBF4 /* Sources */, - FA5D8DD029E899CB006BEBF4 /* Frameworks */, - FA5D8DD129E899CB006BEBF4 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = ETModels; - productName = ETModels; - productReference = FA5D8DD329E899CC006BEBF4 /* ETModels.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - FA1A9195294373F600D70989 /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = 1; - LastSwiftUpdateCheck = 1430; - LastUpgradeCheck = 1410; - TargetAttributes = { - F4BDB1DE29B68B0B00996FDB = { - CreatedOnToolsVersion = 14.0.1; - }; - F4BDB1F629B6932F00996FDB = { - CreatedOnToolsVersion = 14.0.1; - LastSwiftMigration = 1430; - }; - FA1A919D294373F600D70989 = { - CreatedOnToolsVersion = 14.1; - }; - FA5D8DD229E899CB006BEBF4 = { - CreatedOnToolsVersion = 14.3; - }; - }; - }; - buildConfigurationList = FA1A9198294373F600D70989 /* Build configuration list for PBXProject "ETTrace" */; - compatibilityVersion = "Xcode 14.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = FA1A9194294373F600D70989; - packageReferences = ( - F4BDB20329B693BB00996FDB /* XCRemoteSwiftPackageReference "swift-argument-parser" */, - FACBF6EF2A2CD90B00FDFA1E /* XCRemoteSwiftPackageReference "swifter" */, - ); - productRefGroup = FA1A919F294373F600D70989 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - FA1A919D294373F600D70989 /* ETTrace */, - F4BDB1DE29B68B0B00996FDB /* CommunicationFrame */, - F4BDB1F629B6932F00996FDB /* ETTraceRunner */, - FA5D8DD229E899CB006BEBF4 /* ETModels */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - F4BDB1DD29B68B0B00996FDB /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA1A919C294373F600D70989 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA5D8DD129E899CB006BEBF4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - D00D689D560546078E0E1DD6 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ETTraceRunner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - ED631DFE54EB91FF8D7FDE6D /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ETTrace-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - F4BDB1DB29B68B0B00996FDB /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F4BDB1F329B6932F00996FDB /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - F4BDB20C29B695A600996FDB /* SimulatorDeviceManager.swift in Sources */, - FA5D8DA029E892FA006BEBF4 /* JSONWrapper.m in Sources */, - F4BDB21129B697D200996FDB /* DeviceManager.swift in Sources */, - F4BDB1FA29B6932F00996FDB /* PerfAnalysisRunner.swift in Sources */, - F4BDB21329B6981000996FDB /* PhysicalDeviceManager.swift in Sources */, - F4BDB20F29B6965200996FDB /* Utils.swift in Sources */, - F4CB9D3529B7C49000F50446 /* ResponseModel.swift in Sources */, - F4CB9D3729B7C4BE00F50446 /* Symbolicator.swift in Sources */, - FA172EC129E70EBF009D3BF8 /* CommunicationChannel.swift in Sources */, - F4CB9D3929B7C50400F50446 /* FlamegraphGenerator.swift in Sources */, - F4CB9D3F29B907DE00F50446 /* RunnerHelper.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA1A919A294373F600D70989 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FA1A91A92943741600D70989 /* EMGPerfAnalysis.mm in Sources */, - F4BDB1EF29B68D7900996FDB /* EMGChannelListener.m in Sources */, - FA1A91AC2943748100D70989 /* EMGWriteLibraries.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FA5D8DCF29E899CB006BEBF4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FA5D8DDA29E899D3006BEBF4 /* FlameNode.swift in Sources */, - FA5D8DDB29E899D3006BEBF4 /* Sample.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - F4BDB1E729B68BCD00996FDB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = F4BDB1DE29B68B0B00996FDB /* CommunicationFrame */; - targetProxy = F4BDB1E629B68BCD00996FDB /* PBXContainerItemProxy */; - }; - F4BDB1FF29B6933700996FDB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = F4BDB1DE29B68B0B00996FDB /* CommunicationFrame */; - targetProxy = F4BDB1FE29B6933700996FDB /* PBXContainerItemProxy */; - }; - F4BDB20729B693CA00996FDB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - productRef = F4BDB20629B693CA00996FDB /* ArgumentParser */; - }; - FA5D8DDD29E899FE006BEBF4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = FA5D8DD229E899CB006BEBF4 /* ETModels */; - targetProxy = FA5D8DDC29E899FE006BEBF4 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - F4BDB1E329B68B0B00996FDB /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 62J2XHNK9T; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = ( - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MACOSX_DEPLOYMENT_TARGET = 12.3; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.emerge.CommunicationFrame; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - F4BDB1E429B68B0B00996FDB /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 62J2XHNK9T; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = ( - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MACOSX_DEPLOYMENT_TARGET = 12.3; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.emerge.CommunicationFrame; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; - F4BDB1FC29B6932F00996FDB /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1FBF0AED1A96804F57717F27 /* Pods-ETTraceRunner.debug.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD)"; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = ETTraceRunner/ETTraceRunner.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 62J2XHNK9T; - ENABLE_HARDENED_RUNTIME = NO; - MACOSX_DEPLOYMENT_TARGET = 12.3; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OBJC_BRIDGING_HEADER = "ETTraceRunner/ETTraceRunner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - F4BDB1FD29B6932F00996FDB /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 26C10ACD7D67B0FE1AFD5254 /* Pods-ETTraceRunner.release.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD)"; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = ETTraceRunner/ETTraceRunner.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 62J2XHNK9T; - ENABLE_HARDENED_RUNTIME = NO; - MACOSX_DEPLOYMENT_TARGET = 12.3; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OBJC_BRIDGING_HEADER = "ETTraceRunner/ETTraceRunner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - FA1A91A3294373F600D70989 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD)"; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 16.1; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - FA1A91A4294373F600D70989 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD)"; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 16.1; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - FA1A91A6294373F600D70989 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F99E9B15EA3CFAAF648C921D /* Pods-ETTrace.debug.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 62J2XHNK9T; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.emerge.ETTrace; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - FA1A91A7294373F600D70989 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 92BA8E32F1513EFDC8771338 /* Pods-ETTrace.release.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 62J2XHNK9T; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.emerge.ETTrace; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; - FA5D8DD829E899CC006BEBF4 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = J9H72XH8P9; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = ( - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MACOSX_DEPLOYMENT_TARGET = 12.3; - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = com.emerge.ETModels; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - FA5D8DD929E899CC006BEBF4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = J9H72XH8P9; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = ( - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MACOSX_DEPLOYMENT_TARGET = 12.3; - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = com.emerge.ETModels; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - F4BDB1E529B68B0B00996FDB /* Build configuration list for PBXNativeTarget "CommunicationFrame" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F4BDB1E329B68B0B00996FDB /* Debug */, - F4BDB1E429B68B0B00996FDB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - F4BDB1FB29B6932F00996FDB /* Build configuration list for PBXNativeTarget "ETTraceRunner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F4BDB1FC29B6932F00996FDB /* Debug */, - F4BDB1FD29B6932F00996FDB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - FA1A9198294373F600D70989 /* Build configuration list for PBXProject "ETTrace" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - FA1A91A3294373F600D70989 /* Debug */, - FA1A91A4294373F600D70989 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - FA1A91A5294373F600D70989 /* Build configuration list for PBXNativeTarget "ETTrace" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - FA1A91A6294373F600D70989 /* Debug */, - FA1A91A7294373F600D70989 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - FA5D8DD729E899CC006BEBF4 /* Build configuration list for PBXNativeTarget "ETModels" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - FA5D8DD829E899CC006BEBF4 /* Debug */, - FA5D8DD929E899CC006BEBF4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - -/* Begin XCRemoteSwiftPackageReference section */ - F4BDB20329B693BB00996FDB /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/apple/swift-argument-parser.git"; - requirement = { - kind = upToNextMajorVersion; - minimumVersion = 1.0.0; - }; - }; - FACBF6EF2A2CD90B00FDFA1E /* XCRemoteSwiftPackageReference "swifter" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/httpswift/swifter"; - requirement = { - kind = upToNextMajorVersion; - minimumVersion = 1.0.0; - }; - }; -/* End XCRemoteSwiftPackageReference section */ - -/* Begin XCSwiftPackageProductDependency section */ - F4BDB20429B693BB00996FDB /* ArgumentParser */ = { - isa = XCSwiftPackageProductDependency; - package = F4BDB20329B693BB00996FDB /* XCRemoteSwiftPackageReference "swift-argument-parser" */; - productName = ArgumentParser; - }; - F4BDB20629B693CA00996FDB /* ArgumentParser */ = { - isa = XCSwiftPackageProductDependency; - package = F4BDB20329B693BB00996FDB /* XCRemoteSwiftPackageReference "swift-argument-parser" */; - productName = ArgumentParser; - }; - F4BDB20829B6942100996FDB /* ArgumentParser */ = { - isa = XCSwiftPackageProductDependency; - package = F4BDB20329B693BB00996FDB /* XCRemoteSwiftPackageReference "swift-argument-parser" */; - productName = ArgumentParser; - }; - FACBF6F02A2CD90B00FDFA1E /* Swifter */ = { - isa = XCSwiftPackageProductDependency; - package = FACBF6EF2A2CD90B00FDFA1E /* XCRemoteSwiftPackageReference "swifter" */; - productName = Swifter; - }; - FACBF6F22A2CDD8600FDFA1E /* Swifter */ = { - isa = XCSwiftPackageProductDependency; - package = FACBF6EF2A2CD90B00FDFA1E /* XCRemoteSwiftPackageReference "swifter" */; - productName = Swifter; - }; -/* End XCSwiftPackageProductDependency section */ - }; - rootObject = FA1A9195294373F600D70989 /* Project object */; -} diff --git a/ETTrace/ETTrace.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ETTrace/ETTrace.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/ETTrace/ETTrace.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ETTrace/ETTrace.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ETTrace/ETTrace.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/ETTrace/ETTrace.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/ETTrace/ETTrace.xcworkspace/contents.xcworkspacedata b/ETTrace/ETTrace.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 7b6f50a..0000000 --- a/ETTrace/ETTrace.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/ETTrace/ETTrace.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ETTrace/ETTrace.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/ETTrace/ETTrace.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/ETTrace/ETTrace.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ETTrace/ETTrace.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 8b36f9a..0000000 --- a/ETTrace/ETTrace.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,23 +0,0 @@ -{ - "pins" : [ - { - "identity" : "swift-argument-parser", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-argument-parser.git", - "state" : { - "revision" : "fee6933f37fde9a5e12a1e4aeaa93fe60116ff2a", - "version" : "1.2.2" - } - }, - { - "identity" : "swifter", - "kind" : "remoteSourceControl", - "location" : "git@github.com:httpswift/swifter.git", - "state" : { - "revision" : "9483a5d459b45c3ffd059f7b55f9638e268632fd", - "version" : "1.5.0" - } - } - ], - "version" : 2 -} diff --git a/ETTrace/ETTrace/EMGChannelListener.m b/ETTrace/ETTrace/EMGChannelListener.m index c99efab..a6b2f13 100644 --- a/ETTrace/ETTrace/EMGChannelListener.m +++ b/ETTrace/ETTrace/EMGChannelListener.m @@ -6,9 +6,9 @@ // #import "EMGChannelListener.h" -#import -#import #import "EMGPerfAnalysis_Private.h" +#import +#import @interface EMGChannelListener () @property (nonatomic, weak) PTChannel *serverChannel; diff --git a/ETTrace/ETTrace/EMGPerfAnalysis.mm b/ETTrace/ETTrace/EMGPerfAnalysis.mm index 61c0378..ab4efab 100644 --- a/ETTrace/ETTrace/EMGPerfAnalysis.mm +++ b/ETTrace/ETTrace/EMGPerfAnalysis.mm @@ -14,7 +14,7 @@ #import #import #import "EMGChannelListener.h" - +#import #import "PerfAnalysis.h" @implementation EMGPerfAnalysis diff --git a/ETTrace/ETTrace/PerfAnalysis.h b/ETTrace/ETTrace/Public/PerfAnalysis.h similarity index 100% rename from ETTrace/ETTrace/PerfAnalysis.h rename to ETTrace/ETTrace/Public/PerfAnalysis.h diff --git a/ETTrace/ETTraceRunner/Devices/CommunicationChannel.swift b/ETTrace/ETTraceRunner/Devices/CommunicationChannel.swift index ce37f53..ff599a9 100644 --- a/ETTrace/ETTraceRunner/Devices/CommunicationChannel.swift +++ b/ETTrace/ETTraceRunner/Devices/CommunicationChannel.swift @@ -7,7 +7,7 @@ import Foundation import CommunicationFrame -import PeerTalk +import Peertalk class CommunicationChannel: NSObject { diff --git a/ETTrace/ETTraceRunner/Devices/DeviceManager.swift b/ETTrace/ETTraceRunner/Devices/DeviceManager.swift index bdfed6b..d0aad50 100644 --- a/ETTrace/ETTraceRunner/Devices/DeviceManager.swift +++ b/ETTrace/ETTraceRunner/Devices/DeviceManager.swift @@ -7,7 +7,7 @@ import Foundation import CommunicationFrame -import PeerTalk +import Peertalk protocol DeviceManager { var communicationChannel: CommunicationChannel { get } diff --git a/ETTrace/ETTraceRunner/Devices/PhysicalDeviceManager.swift b/ETTrace/ETTraceRunner/Devices/PhysicalDeviceManager.swift index 96bc403..c53616e 100644 --- a/ETTrace/ETTraceRunner/Devices/PhysicalDeviceManager.swift +++ b/ETTrace/ETTraceRunner/Devices/PhysicalDeviceManager.swift @@ -6,7 +6,7 @@ // import Foundation -import PeerTalk +import Peertalk import CommunicationFrame enum ConnectionError: Error { diff --git a/ETTrace/ETTraceRunner/Devices/SimulatorDeviceManager.swift b/ETTrace/ETTraceRunner/Devices/SimulatorDeviceManager.swift index 5f46751..e59299d 100644 --- a/ETTrace/ETTraceRunner/Devices/SimulatorDeviceManager.swift +++ b/ETTrace/ETTraceRunner/Devices/SimulatorDeviceManager.swift @@ -6,7 +6,7 @@ // import Foundation -import PeerTalk +import Peertalk import CommunicationFrame struct SimulatorDeviceManager: DeviceManager { diff --git a/ETTrace/ETTraceRunner/ETTraceRunner-Bridging-Header.h b/ETTrace/ETTraceRunner/ETTraceRunner-Bridging-Header.h deleted file mode 100644 index 0416ec5..0000000 --- a/ETTrace/ETTraceRunner/ETTraceRunner-Bridging-Header.h +++ /dev/null @@ -1,5 +0,0 @@ -// -// Use this file to import your target's public headers that you would like to expose to Swift. -// - -#import "JSONWrapper.h" diff --git a/ETTrace/ETTraceRunner/JSONWrapper.h b/ETTrace/ETTraceRunner/JSONWrapper.h deleted file mode 100644 index 1fd3ca1..0000000 --- a/ETTrace/ETTraceRunner/JSONWrapper.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// TestClass.h -// ETTrace -// -// Created by Noah Martin on 4/13/23. -// - -#ifndef TestClass_h -#define TestClass_h - -@import Foundation; -@import ETModels; - -@interface JSONWrapper : NSObject - -+ (NSDictionary *)toDictionary:(FlameNode *)dictionary; -+ (NSData *)toData:(FlameNode *)input; - -@end - - -#endif /* TestClass_h */ diff --git a/ETTrace/ETTraceRunner/PerfAnalysisRunner.swift b/ETTrace/ETTraceRunner/PerfAnalysisRunner.swift index 639acf8..d32f46a 100644 --- a/ETTrace/ETTraceRunner/PerfAnalysisRunner.swift +++ b/ETTrace/ETTraceRunner/PerfAnalysisRunner.swift @@ -8,7 +8,6 @@ import Foundation import ArgumentParser -@main struct PerfAnalysisRunner: ParsableCommand { @Option(name: .shortAndLong, help: "Directory with dSYMs") var dsyms: String? = nil diff --git a/ETTrace/ETTraceRunner/RunnerHelper.swift b/ETTrace/ETTraceRunner/RunnerHelper.swift index a85dbe2..b74862a 100644 --- a/ETTrace/ETTraceRunner/RunnerHelper.swift +++ b/ETTrace/ETTraceRunner/RunnerHelper.swift @@ -5,10 +5,12 @@ // Created by Itay Brenner on 8/3/23. // +import AppKit import Foundation -import PeerTalk +import Peertalk import CommunicationFrame import Swifter +import JSONWrapper class RunnerHelper { let dsyms: String? diff --git a/ETTrace/ETTraceRunner/Utils/Utils.swift b/ETTrace/ETTraceRunner/Utils/Utils.swift index 59f7410..eec9764 100644 --- a/ETTrace/ETTraceRunner/Utils/Utils.swift +++ b/ETTrace/ETTraceRunner/Utils/Utils.swift @@ -6,6 +6,7 @@ // import Foundation +import AppKit func safeShell(_ command: String) throws { let task = Process() diff --git a/ETTrace/ETTraceRunner/main.swift b/ETTrace/ETTraceRunner/main.swift new file mode 100644 index 0000000..7503fd7 --- /dev/null +++ b/ETTrace/ETTraceRunner/main.swift @@ -0,0 +1,8 @@ +// +// main.swift +// +// +// Created by Itay Brenner on 6/6/23. +// + +PerfAnalysisRunner.main() diff --git a/ETTrace/ETTraceRunner/JSONWrapper.m b/ETTrace/JSONWrapper/JSONWrapper.m similarity index 79% rename from ETTrace/ETTraceRunner/JSONWrapper.m rename to ETTrace/JSONWrapper/JSONWrapper.m index 3392328..3ded589 100644 --- a/ETTrace/ETTraceRunner/JSONWrapper.m +++ b/ETTrace/JSONWrapper/JSONWrapper.m @@ -7,10 +7,13 @@ #import #import "JSONWrapper.h" +@import ETModels; @implementation JSONWrapper -+ (NSDictionary *)toDictionary:(FlameNode *)node { ++ (NSDictionary *)toDictionary:(NSObject *)anyObject { + FlameNode *node = (FlameNode *)anyObject; + NSObject *children; if (node.children.count == 1) { children = [JSONWrapper toDictionary:node.children[0]]; @@ -30,7 +33,9 @@ + (NSDictionary *)toDictionary:(FlameNode *)node { }; } -+ (NSData *)toData:(FlameNode *)input { ++ (NSData *)toData:(NSObject *)anyInput { + FlameNode *input = (FlameNode *)anyInput; + return [NSJSONSerialization dataWithJSONObject:[JSONWrapper toDictionary:input] options:NSJSONWritingWithoutEscapingSlashes error:nil]; } diff --git a/ETTrace/JSONWrapper/Public/JSONWrapper.h b/ETTrace/JSONWrapper/Public/JSONWrapper.h new file mode 100644 index 0000000..b1ddd15 --- /dev/null +++ b/ETTrace/JSONWrapper/Public/JSONWrapper.h @@ -0,0 +1,22 @@ +// +// TestClass.h +// ETTrace +// +// Created by Noah Martin on 4/13/23. +// + +#ifndef TestClass_h +#define TestClass_h + +@import Foundation; + +@interface JSONWrapper : NSObject + +// Use NSObject here because we cannot import Swift packages from the public header to avoid circular dependencies ++ (NSDictionary *)toDictionary:(NSObject *)dictionary; ++ (NSData *)toData:(NSObject *)input; + +@end + + +#endif /* TestClass_h */ diff --git a/ETTrace/Podfile b/ETTrace/Podfile deleted file mode 100644 index ed99252..0000000 --- a/ETTrace/Podfile +++ /dev/null @@ -1,10 +0,0 @@ -use_frameworks! :linkage => :static - -target 'ETTrace' do - pod 'FirebaseCrashlytics', :path => '../Unwinding' - pod 'PeerTalk', '0.1.0' -end - -target 'ETTraceRunner' do - pod 'PeerTalk', '0.1.0' -end diff --git a/ETTrace/Podfile.lock b/ETTrace/Podfile.lock deleted file mode 100644 index 06d1d8f..0000000 --- a/ETTrace/Podfile.lock +++ /dev/null @@ -1,23 +0,0 @@ -PODS: - - FirebaseCrashlytics (8.13.0) - - PeerTalk (0.1.0) - -DEPENDENCIES: - - FirebaseCrashlytics (from `../Unwinding`) - - PeerTalk (= 0.1.0) - -SPEC REPOS: - trunk: - - PeerTalk - -EXTERNAL SOURCES: - FirebaseCrashlytics: - :path: "../Unwinding" - -SPEC CHECKSUMS: - FirebaseCrashlytics: 96b90aadd4f43dd7d7072696377a00865ed1988b - PeerTalk: 7ad12ee847f28748f8996afdae3add70f7670306 - -PODFILE CHECKSUM: 067cee106b94af986f3e6731269edabf978e5832 - -COCOAPODS: 1.11.3 diff --git a/ETTrace/ETTrace.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Package.resolved similarity index 61% rename from ETTrace/ETTrace.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved rename to Package.resolved index 8b36f9a..3ab283a 100644 --- a/ETTrace/ETTrace.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Package.resolved @@ -1,5 +1,14 @@ { "pins" : [ + { + "identity" : "peertalk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/EmergeTools/peertalk.git", + "state" : { + "branch" : "feature/spm", + "revision" : "02b8bebff91cd3d7a5d89c0ddb4bbd873c62879d" + } + }, { "identity" : "swift-argument-parser", "kind" : "remoteSourceControl", @@ -12,7 +21,7 @@ { "identity" : "swifter", "kind" : "remoteSourceControl", - "location" : "git@github.com:httpswift/swifter.git", + "location" : "https://github.com/httpswift/swifter.git", "state" : { "revision" : "9483a5d459b45c3ffd059f7b55f9638e268632fd", "version" : "1.5.0" diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..be36c74 --- /dev/null +++ b/Package.swift @@ -0,0 +1,80 @@ +// swift-tools-version: 5.7 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "ETTrace", + platforms: [.iOS(.v13), .macOS(.v12)], + products: [ + .library( + name: "ETTrace", + type: .dynamic, + targets: ["ETTrace"] + ), + .executable( + name: "ETTraceRunner", + targets: ["ETTraceRunner"] + ) + ], + dependencies: [ + .package(url: "https://github.com/EmergeTools/peertalk.git", branch: "feature/spm"), + .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"), + .package(url: "https://github.com/httpswift/swifter.git", from: "1.5.0") + ], + targets: [ + .target( + name: "ETTrace", + dependencies: [ + "Unwinding", + "CommunicationFrame", + .product(name: "Peertalk", package: "peertalk") + ], + path: "ETTrace/ETTrace", + publicHeadersPath: "Public" + ), + .target( + name: "CommunicationFrame", + path: "ETTrace/CommunicationFrame", + publicHeadersPath: "Public" + ), + .target( + name: "Unwinding", + dependencies: [], + path: "Unwinding/Crashlytics", + exclude: [ + "LICENSE", + "README.md" + ], + publicHeadersPath: "Public" + ), + .executableTarget( + name: "ETTraceRunner", + dependencies: [ + "CommunicationFrame", + "JSONWrapper", + "ETModels", + .product(name: "Peertalk", package: "peertalk"), + .product(name: "ArgumentParser", package: "swift-argument-parser"), + .product(name: "Swifter", package: "swifter") + ], + path: "ETTrace/ETTraceRunner", + exclude: [ + "ETTraceRunner.entitlements" + ] + ), + .target( + name: "JSONWrapper", + dependencies: [ + "ETModels" + ], + path: "ETTrace/JSONWrapper", + publicHeadersPath: "Public" + ), + .target( + name: "ETModels", + dependencies: [], + path: "ETTrace/ETModels" + ), + ] +) diff --git a/README.md b/README.md index 3dbfa59..1f655fd 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Locally measure performance of your app, without Xcode or Instruments. Read all ## Building and Installing -Run `pod install` in the ETTrace folder. Modify the code signing team in `ETTrace/ETTrace.xcworkspace` to your own team. Run `./build.sh` to build the xcframework `ETTrace.xcframework`. Link the xcframework to your app. +Run `./build.sh` to build the xcframework `ETTrace.xcframework`. Link the xcframework to your app. Install the runner with `brew install emergetools/homebrew-tap/ettrace` diff --git a/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSEmerge.c b/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSEmerge.c index 4284028..889dfdd 100644 --- a/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSEmerge.c +++ b/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSEmerge.c @@ -12,10 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "Crashlytics/Crashlytics/Helpers/FIRCLSDefines.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.h" -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "../Helpers/FIRCLSDefines.h" +#include "../Helpers/FIRCLSThreadState.h" +#include "../Unwind/FIRCLSUnwind.h" +#include "../Helpers/FIRCLSUtility.h" #include #include diff --git a/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSGlobals.h b/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSGlobals.h index 8c11534..0b28830 100644 --- a/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSGlobals.h +++ b/Unwinding/Crashlytics/Crashlytics/Components/FIRCLSGlobals.h @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.h" +#include "../Helpers/FIRCLSInternalLogging.h" #include __BEGIN_DECLS diff --git a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h index bd0b21d..df56db6 100644 --- a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h +++ b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h @@ -14,7 +14,7 @@ #pragma once -#include "Crashlytics/Crashlytics/Helpers/FIRCLSDefines.h" +#include "FIRCLSDefines.h" #define CLS_MEMORY_PROTECTION_ENABLED 1 // #define CLS_COMPACT_UNWINDED_ENABLED 1 diff --git a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.c b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.c index db2280c..dd94e76 100644 --- a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.c +++ b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.c @@ -14,9 +14,9 @@ #include -#include "Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.h" -#include "Crashlytics/Crashlytics/Components/FIRCLSGlobals.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "FIRCLSInternalLogging.h" +#include "../Components/FIRCLSGlobals.h" +#include "../Helpers/FIRCLSUtility.h" void FIRCLSSDKFileLog(FIRCLSInternalLogLevel level, const char* format, ...) { va_list args; diff --git a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.h b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.h index 3869889..4ff1644 100644 --- a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.h +++ b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSInternalLogging.h @@ -17,7 +17,7 @@ #include #if __OBJC__ -#import "Crashlytics/Crashlytics/Helpers/FIRCLSLogger.h" +#import "FIRCLSLogger.h" #define FIRCLSDeveloperLog(label, __FORMAT__, ...) \ FIRCLSDebugLog(@"[" label "] " __FORMAT__, ##__VA_ARGS__); #endif diff --git a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSLogger.m b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSLogger.m index e2313b9..af8bc36 100644 --- a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSLogger.m +++ b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSLogger.m @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#import "Crashlytics/Crashlytics/Helpers/FIRCLSLogger.h" +#import "FIRCLSLogger.h" NSString *const CrashlyticsMessageCode = @"I-CLS000000"; diff --git a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.c b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.c index c25e0c9..44a3002 100644 --- a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.c +++ b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.c @@ -12,9 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSDefines.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "FIRCLSThreadState.h" +#include "FIRCLSDefines.h" +#include "FIRCLSUtility.h" #if defined(__arm__) || defined(__arm64__) #include diff --git a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h index 5bc5170..849e188 100644 --- a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h +++ b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h @@ -17,7 +17,7 @@ #include #include #include -#include "Crashlytics/Crashlytics/Components/FIRCLSGlobals.h" +#include "../Components/FIRCLSGlobals.h" #define FIRCLSIsValidPointer(x) ((uintptr_t)x >= 4096) #define FIRCLSInvalidCharNybble (255) diff --git a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.m b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.m index 197c00c..d705ddc 100644 --- a/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.m +++ b/Unwinding/Crashlytics/Crashlytics/Helpers/FIRCLSUtility.m @@ -12,14 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "FIRCLSUtility.h" #include #include -#include "Crashlytics/Crashlytics/Components/FIRCLSGlobals.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h" +#include "../Components/FIRCLSGlobals.h" +#include "FIRCLSFeatures.h" #import diff --git a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.c b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.c index 7f285a4..72c99df 100644 --- a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.c +++ b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.c @@ -12,10 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h" -#include "Crashlytics/Crashlytics/Components/FIRCLSGlobals.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "FIRCLSUnwind.h" +#include "../Helpers/FIRCLSFeatures.h" +#include "../Components/FIRCLSGlobals.h" +#include "../Helpers/FIRCLSUtility.h" #include #include diff --git a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h index cbf46f9..9076bf9 100644 --- a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h +++ b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h @@ -14,15 +14,15 @@ #pragma once -#include "Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "../Helpers/FIRCLSThreadState.h" +#include "../Helpers/FIRCLSUtility.h" #if CLS_COMPACT_UNWINDING_SUPPORTED -#include "Crashlytics/Crashlytics/Unwind/Compact/FIRCLSCompactUnwind.h" +#include "../Unwind/Compact/FIRCLSCompactUnwind.h" #endif #include #include -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arch.h" +#include "FIRCLSUnwind_arch.h" extern const uint32_t FIRCLSUnwindMaxFrames; diff --git a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arch.h b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arch.h index 714a7ae..eb5215a 100644 --- a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arch.h +++ b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arch.h @@ -14,10 +14,10 @@ #pragma once -#include "Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSThreadState.h" +#include "../Helpers/FIRCLSFeatures.h" +#include "../Helpers/FIRCLSThreadState.h" #if CLS_COMPACT_UNWINDING_SUPPORTED -#include "Crashlytics/Crashlytics/Unwind/Compact/FIRCLSCompactUnwind.h" +#include "../Unwind/Compact/FIRCLSCompactUnwind.h" #endif bool FIRCLSUnwindWithFramePointer(FIRCLSThreadContext *registers, bool allowScanning); diff --git a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arm.c b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arm.c index 7de32ee..a1da78b 100644 --- a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arm.c +++ b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arm.c @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "Crashlytics/Crashlytics/Helpers/FIRCLSDefines.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h" -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h" -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arch.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "../Helpers/FIRCLSDefines.h" +#include "../Helpers/FIRCLSFeatures.h" +#include "FIRCLSUnwind.h" +#include "FIRCLSUnwind_arch.h" +#include "../Helpers/FIRCLSUtility.h" #if CLS_CPU_ARM || CLS_CPU_ARM64 diff --git a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.c b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.c index 3c0506a..0c0f7b2 100644 --- a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.c +++ b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.c @@ -12,12 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSDefines.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h" -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind.h" -#include "Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_arch.h" -#include "Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h" +#include "FIRCLSUnwind_x86.h" +#include "../Helpers/FIRCLSDefines.h" +#include "../Helpers/FIRCLSFeatures.h" +#include "FIRCLSUnwind.h" +#include "FIRCLSUnwind_arch.h" +#include "../Helpers/FIRCLSUtility.h" #if CLS_CPU_X86 #include diff --git a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.h b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.h index 3336484..0649feb 100644 --- a/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.h +++ b/Unwinding/Crashlytics/Crashlytics/Unwind/FIRCLSUnwind_x86.h @@ -14,7 +14,7 @@ #pragma once -#include "Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h" +#include "../Helpers/FIRCLSFeatures.h" // Add some abstraction to compact unwinding, because compact // unwinding is nearly identical between 32 and 64 bit diff --git a/Unwinding/Crashlytics/Public/Unwinding.h b/Unwinding/Crashlytics/Public/Unwinding.h new file mode 100644 index 0000000..79a83d9 --- /dev/null +++ b/Unwinding/Crashlytics/Public/Unwinding.h @@ -0,0 +1,12 @@ +// +// Header.h +// +// +// Created by Itay Brenner on 2/6/23. +// + +#ifndef Header_h +#define Header_h + + +#endif /* Header_h */ diff --git a/build.sh b/build.sh index 91cdfba..73b337b 100755 --- a/build.sh +++ b/build.sh @@ -1,18 +1,24 @@ xcodebuild archive \ - -workspace ./ETTrace/ETTrace.xcworkspace \ -scheme ETTrace \ -archivePath ./ETTrace-iphonesimulator.xcarchive \ -sdk iphonesimulator \ - SKIP_INSTALL=NO + -destination 'generic/platform=iOS Simulator' \ + BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ + INSTALL_PATH='Library/Frameworks' \ + SKIP_INSTALL=NO \ + CLANG_CXX_LANGUAGE_STANDARD=c++17 xcodebuild archive \ - -workspace ./ETTrace/ETTrace.xcworkspace \ -scheme ETTrace \ -archivePath ./ETTrace-iphoneos.xcarchive \ -sdk iphoneos \ - SKIP_INSTALL=NO + -destination 'generic/platform=iOS' \ + BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ + INSTALL_PATH='Library/Frameworks' \ + SKIP_INSTALL=NO \ + CLANG_CXX_LANGUAGE_STANDARD=c++17 xcodebuild -create-xcframework \ -framework ./ETTrace-iphonesimulator.xcarchive/Products/Library/Frameworks/ETTrace.framework \ -framework ./ETTrace-iphoneos.xcarchive/Products/Library/Frameworks/ETTrace.framework \ - -output ./ETTrace.xcframework + -output ./ETTrace.xcframework \ No newline at end of file diff --git a/build_runner.sh b/build_runner.sh new file mode 100755 index 0000000..d96bbdc --- /dev/null +++ b/build_runner.sh @@ -0,0 +1,10 @@ +xcodebuild archive \ + -scheme ETTraceRunner \ + -archivePath ./ETTraceRunner.xcarchive \ + -sdk macosx \ + -destination 'generic/platform=macOS' \ + SKIP_INSTALL=NO + +codesign --entitlements ./ETTrace/ETTraceRunner/ETTraceRunner.entitlements -f -s $SIGNING_IDENTITY ETTraceRunner.xcarchive/Products/usr/local/bin/ETTraceRunner + +cp ETTraceRunner.xcarchive/Products/usr/local/bin/ETTraceRunner ETTraceRunner \ No newline at end of file