Closed Zieng closed 4 years ago
You must be updated AudioKit version on the pod file. I solved using 4.10.1 version of AudioKit.
Hi @dogehk thanks for your reply! I tried to use the 4.10.1 version of AudioKit:
diff --git a/Podfile b/Podfile
index 514ebad0..e889fd85 100644
--- a/Podfile
+++ b/Podfile
@@ -8,7 +8,7 @@ source 'https://github.com/CocoaPods/Specs.git'
def available_pods
pod 'AppCenter'
- pod 'AudioKit', '= 4.9.2'
+ pod 'AudioKit', '= 4.10.1'
pod 'Disk', '~> 0.3.2'
pod 'Audiobus'
pod 'OneSignal', '>= 2.6.2', '< 3.0'
@@ -20,7 +20,7 @@ end
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 2.6.2', '< 3.0'
- pod 'AudioKit', '= 4.9.2'
+ pod 'AudioKit', '= 4.10.1'
end
but I still can get it compiled. There are new errors coming:
framework not found Pods_OneSignalNotificationServiceExtension
Full error log:
Ld /Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal x86_64 (in target 'OneSignalNotificationServiceExtension' from project 'AudioKitSynthOne') cd /Users/$USER/code/AudioKitSynthOne /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios11.3-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk -L/Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -F/Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Products/Debug-iphonesimulator -F/Users/$USER/code/AudioKitSynthOne/Pods/AudioKit/iOS -F/Users/$USER/code/AudioKitSynthOne/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -filelist /Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fapplication-extension -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.swiftmodule -lstdc++ -ObjC -lc++ -framework AVFoundation -framework AudioKit -framework AudioKitUI -framework CoreGraphics -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -framework WebKit -e _NSExtensionMain -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent -framework Pods_OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/$USER/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-fwbpfaeosrpufkeapdpxwwfrfyha/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension
Any more suggestions?
OK, I finally made it compile.
AudioKitSynthOne/AudioKitSynthOne/DSP/AKSynthOne.swift:12:2: Explicit '@objc' on subclass of 'AKPolyphonicNode' requires iOS 13.0.0
error@Zieng Great!
@Zieng @dogehk I submitted a PR with these changes....I tested with Xcode 11.5 and iOS13.5. I'm asking a team member with access to devices running iOS < 13 to test as part of the PR review. Thank you for debugging this.
@Zieng this is my PR with your fixes: https://github.com/AudioKit/AudioKitSynthOne/pull/163
@Zieng if the testing goes well...I can cancel my PR and you can submit instead if you want...really appreciate your effort and want you to be credited with it.
@marcussatellite Thanks for your quick response!
It seems the Travis CI build failed on xcode11.2 and I'm not sure if I can help debug the build failures because I'm kind new to iOS development and I only have xcode 11.5 installed. This is a great project and I'm wiling to help so if there is something I can help please let me know.
Cheers
Yeah, devices with iOS versions less than 13 are getting a build error, with this PR. Will share updates in the #synthone AudioKit Slack channel.
On Jun 22, 2020, at 6:04 PM, Zieng notifications@github.co wrote:
@marcussatellite https://github.com/marcussatellite Thanks for your quick response!
It seems the Travis CI build failed on xcode11.2 and I'm not sure if I can help debug the build failures because I'm kind new to iOS development and I only have xcode 11.5 installed. This is a great project and I'm wiling to help so if there is something I can help please let me know.
Cheers
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AudioKit/AudioKitSynthOne/issues/162#issuecomment-647845102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5L5X4IH2H7PR5DZMTB5FTRX75Q5ANCNFSM4ODTY26Q.
Hi I'm not expert on iOS develop so please bear me if I asked stupid question.
I cloned the code, follow the readme and try to compile the project, and unfortunately it can't compile.
The build failed with reason:
Full error log:
After some googling, one answer told me we should set
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
so I did so, but I started to get another build error:Full error log:
My environment: