[ad_1]
After I tried to create an Archive constructed, I bought this error: WebRTC/WebRTC.h’ file not discovered
Error log
...
#if TARGET_OS_IPHONE
#import <Flutter/Flutter.h>
#elif TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#endif
#import <Basis/Basis.h>
#import <WebRTC/WebRTC.h>
@class FlutterRTCVideoRenderer;
@class FlutterRTCFrameCapturer;
typedef void (^CompletionHandler)(void);
typedef void (^CapturerStopHandler)(CompletionHandler handler);
@interface FlutterWebRTCPlugin : NSObject<FlutterPlugin, RTCPeerConnectionDelegate, FlutterStreamHandler
#if TARGET_OS_OSX
, RTCDesktopMediaListDelegate, RTCDesktopCapturerDelegate
#endif
...
…
@property (nonatomic, robust) RTCPeerConnectionFactory *peerConnectionFactory;
@property (nonatomic, robust) NSMutableDictionary<NSString *, RTCPeerConnection *> *peerConnections;
@property (nonatomic, robust) NSMutableDictionary<NSString *, RTCMediaStream *> *localStreams;
@property (nonatomic, robust) NSMutableDictionary<NSString *, RTCMediaStreamTrack *> *localTracks;
@property (nonatomic, robust) NSMutableDictionary<NSNumber *, FlutterRTCVideoRenderer *> *renders;
@property (nonatomic, robust) NSMutableDictionary<NSString *, CapturerStopHandler> *videoCapturerStopHandlers;
#if TARGET_OS_IPHONE
@property (nonatomic, retain) UIViewController *viewController;/*for broadcast or ReplayKit */
#endif
…
TX205:churchevent2 user219740$ flutter construct ios
In file included from
/Customers/user219740/improvement/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.9.6/ios/Courses/FlutterWebRTC
Plugin.m:1:
/Customers/user219740/improvement/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.9.6/ios/Courses/FlutterWebRTC
Plugin.h:8:9: deadly error: ‘WebRTC/WebRTC.h’ file not discovered
#import <WebRTC/WebRTC.h>
^~~~~~~~~~~~~~~~~
1 error generated.
notice: Utilizing new construct system
notice: Planning
notice: Construct preparation full
notice: Constructing targets in dependency order
warning: Not one of the architectures in ARCHS (arm64) are legitimate. Contemplate setting ARCHS to $(ARCHS_STANDARD) or updating
it to incorporate no less than one worth from VALID_ARCHS (arm64, arm64e, armv7, armv7s) which isn’t in EXCLUDED_ARCHS
(arm64). (in goal ‘Runner’ from challenge ‘Runner’)
/Customers/user219740/Paperwork/churchevent2/ios/Pods/Pods.xcodeproj: warning: The iOS deployment goal
‘IPHONEOS_DEPLOYMENT_TARGET’ is ready to eight.0, however the vary of supported deployment goal variations is 9.0 to fifteen.5.99.
(in goal ‘leveldb-library’ from challenge ‘Pods’)
/Customers/user219740/Paperwork/churchevent2/ios/Pods/Pods.xcodeproj: warning: The iOS deployment goal
‘IPHONEOS_DEPLOYMENT_TARGET’ is ready to eight.0, however the vary of supported deployment goal variations is 9.0 to fifteen.5.99.
(in goal ‘ReachabilitySwift’ from challenge ‘Pods’)
/Customers/user219740/Paperwork/churchevent2/ios/Pods/Pods.xcodeproj: warning: The iOS deployment goal
‘IPHONEOS_DEPLOYMENT_TARGET’ is ready to eight.0, however the vary of supported deployment goal variations is 9.0 to fifteen.5.99.
(in goal ‘OrderedSet’ from challenge ‘Pods’)
End result bundle written to path:
/var/folders/l1/hsjw7__j1l33s4q_6rp1b3dh0000ht/T/flutter_tools.EMuCP2/flutter_ios_build_temp_dirZXWjcX/temporary_xcres
ult_bundle
Lexical or Preprocessor Situation (Xcode): ‘WebRTC/WebRTC.h’ file not discovered
/Customers/user219740/improvement/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.9.6/ios/Courses/FlutterWebRTCPlug
in.h:7:8
Encountered error whereas constructing for machine.
TX205:ios user219740$ flutter physician -v
[✓] Flutter (Channel beta, 3.3.0-0.1.pre, on macOS 12.5.1 21G83 darwin-arm, locale en-US)
• Flutter model 3.3.0-0.1.pre on channel beta at /Customers/user219740/improvement/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d952ca86d6 (6 weeks in the past), 2022-07-27 10:33:00 -0700
• Engine revision fd131c385e
• Dart model 2.18.0 (construct 2.18.0-271.4.beta)
• DevTools model 2.15.0
[✓] Android toolchain – develop for Android units (Android SDK model 33.0.0)
• Android SDK at /Customers/user219740/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: /Functions/Android Studio.app/Contents/jre/Contents/Dwelling/bin/java
• Java model OpenJDK Runtime Surroundings (construct 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode – develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Functions/Xcode.app/Contents/Developer
• Construct 13F100
• CocoaPods model 1.11.3
[✓] Chrome – develop for the online
• Chrome at /Functions/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (model 2021.2)
• Android Studio at /Functions/Android Studio.app/Contents
• Flutter plugin might be put in from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin might be put in from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java model OpenJDK Runtime Surroundings (construct 11.0.12+0-b1504.28-7817840)
[✓] VS Code (model 1.70.2)
• VS Code at /Functions/Visible Studio Code.app/Contents
• Flutter extension model 3.48.0
[✓] Linked machine (3 out there)
• iPhone 13 (cellular) • 523B0455-7538-4495-85D9-2249B2CC14A6 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.5.1 21G83 darwin-arm
• Chrome (net) • chrome • web-javascript • Google Chrome 105.0.5195.102
[✓] HTTP Host Availability
• All required HTTP hosts can be found
• No points discovered!
I’ve this on the finish of my Podfile:
…
post_install do |installer|
installer.pods_project.targets.every do |goal|
flutter_additional_ios_build_settings(goal)
# snippet start
if goal.identify == "WebRTC-SDK"
goal.build_configurations.every do |build_configuration|
build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = '$(inherited) i386'
finish
finish
# snippet finish
finish
finish
…
Right here is my pubspec.yaml
flutter_webrtc: ^0.9.1
I modified it to flutter_webrtc: ^0.9.6
…
Didn't construct iOS app
Error output from Xcode construct:
↳
2022-09-10 19:52:14.274 xcodebuild[81276:1436856] Requested however didn't discover extension level with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension
Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-09-10 19:52:14.274 xcodebuild[81276:1436856] Requested however didn't discover extension level with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcode's output:
↳
Writing outcome bundle at path:
/var/folders/l1/hsjw7__j1l33s4q_6rp1b3dh0000ht/T/flutter_tools.DnnhPF/flutter_ios_build_temp_diriYrd1g/temporary_xcresult_bundle
warning: [CP] WebRTC.xcframework: Unable to search out matching slice in 'ios-arm64_x86_64-simulator ios-arm64' for the present construct architectures (arm64 armv7) and platform (-iphoneos).
Command CompileSwiftSources failed with a nonzero exit code
comment: Incremental compilation has been disabled: it isn't appropriate with complete module optimization
Command CompileSwiftSources failed with a nonzero exit code
In file included from /Customers/user219740/improvement/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.9.6/ios/Courses/FlutterWebRTCPlugin.m:1:
/Customers/user219740/improvement/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.9.6/ios/Courses/FlutterWebRTCPlugin.h:8:9: deadly error: 'WebRTC/WebRTC.h' file not discovered
#import <WebRTC/WebRTC.h>
^~~~~~~~~~~~~~~~~
1 error generated.
notice: Utilizing new construct system
notice: Planning
notice: Construct preparation full
notice: Constructing targets in dependency order
/Customers/user219740/Paperwork/churchevent2/ios/Pods/Pods.xcodeproj: warning: The iOS deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to eight.0, however the vary of supported deployment goal variations is
9.0 to fifteen.5.99. (in goal 'leveldb-library' from challenge 'Pods')
/Customers/user219740/Paperwork/churchevent2/ios/Pods/Pods.xcodeproj: warning: The iOS deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to eight.0, however the vary of supported deployment goal variations is
9.0 to fifteen.5.99. (in goal 'ReachabilitySwift' from challenge 'Pods')
/Customers/user219740/Paperwork/churchevent2/ios/Pods/Pods.xcodeproj: warning: The iOS deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to eight.0, however the vary of supported deployment goal variations is
9.0 to fifteen.5.99. (in goal 'OrderedSet' from challenge 'Pods')
warning: Not one of the architectures in ARCHS (arm64) are legitimate. Contemplate setting ARCHS to $(ARCHS_STANDARD) or updating it to incorporate no less than one worth from VALID_ARCHS (arm64, arm64e, armv7, armv7s)
which isn't in EXCLUDED_ARCHS (arm64). (in goal 'Runner' from challenge 'Runner')
End result bundle written to path:
/var/folders/l1/hsjw7__j1l33s4q_6rp1b3dh0000ht/T/flutter_tools.DnnhPF/flutter_ios_build_temp_diriYrd1g/temporary_xcresult_bundle
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code
Lexical or Preprocessor Situation (Xcode): 'WebRTC/WebRTC.h' file not discovered
/Customers/user219740/improvement/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.9.6/ios/Courses/FlutterWebRTCPlugin.h:7:8
Encountered error whereas constructing for machine.
…
Please assist me… I attempted many ideas from the online, however I nonetheless get the identical error.
[ad_2]
