不能编译DJIWidget移动-UXSDK-IOS

问题描述 投票:0回答:2

我试图用Xcode的10.1编译DJIWidget。其目的是运行在GitHub上找到了Mobile-UXSDK-iOS Sample。如果我使用New Build System(文件 - >工作区设置)我得到以下错误:

Ld /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget normal x86_64 (in target: DJIWidget)
    cd /Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample\ Code/SwiftSampleCode/Pods
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample\ Code/SwiftSampleCode/Pods/DJIWidget/FFmpeg -filelist /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget.LinkFileList -install_name @rpath/DJIWidget.framework/DJIWidget -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_dependency_info.dat -o /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget

Undefined symbols for architecture x86_64:
  "_avformat_network_init", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set_int", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_find_encoder", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_encode_audio2", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avio_close_stream", referenced from:
      _djiff_close_stream_input in djiffremux.o
  "_avformat_close_input", referenced from:
      _djiff_close_file_input in djiffremux.o
  "_avformat_open_input", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_bitstream_filter_close", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_strlcpy", referenced from:
      _djiff_open_file_input in djiffremux.o
  "_av_get_bits_per_sample", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_av_rescale_q_rnd", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avcodec_pix_fmt_to_codec_tag", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avformat_free_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      _djiff_close_stream_input in djiffremux.o
  "_avpriv_find_pix_fmt", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avcodec_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_opt_set_defaults", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avformat_alloc_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_free_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_filter_packet in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
      ...
  "_avio_open_stream", referenced from:
      _djiff_open_stream_input in djiffremux.o
  "_av_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avformat_find_stream_info", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_write_trailer", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_rescale_q", referenced from:
      _djiff_mux_choose_output in djiffremux.o
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      _djiff_remux_seek in djiffremux.o
  "_av_guess_format", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_sws_scale", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_av_read_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_demux_frame in djiffremux.o
  "_avcodec_copy_context", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avformat_write_header", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_avformat_alloc_output_context2", referenced from:
      _djiff_remux_init in djiffremux.o
  "_avpriv_get_raw_pix_fmt_tags", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avio_open", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_find_input_format", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avio_close", referenced from:
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
  "_av_bitstream_filter_init", referenced from:
      _djiff_remux_init in djiffremux.o
  "_sws_freeContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter dealloc] in DJIImageCalibrateColorCPUConverter.o
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avformat_new_stream", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_copy", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_init_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avcodec_open2", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_parse2", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avio_open2", referenced from:
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_av_interleaved_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_register_all", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_alloc", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_find_decoder", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_set", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_assign_stream_info in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_free", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_av_seek_frame", referenced from:
      _djiff_remux_seek in djiffremux.o
  "_av_parser_init", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_mallocz", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_av_register_all", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_init in djiffremux.o
      _djiff_remux_getDuration in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_free", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_bitstream_filter_filter", referenced from:
      _djiff_filter_packet in djiffremux.o
  "_sws_getContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avcodec_alloc_context3", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_free", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_free] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_avcodec_decode_video2", referenced from:
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

相反,如果我使用Legacy Build System作为解释here我仍然有错误,有以下几种:

Ld /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget normal x86_64
    cd "/Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample Code/SwiftSampleCode/Pods"
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample\ Code/SwiftSampleCode/Pods/DJIWidget/FFmpeg -filelist /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget.LinkFileList -install_name @rpath/DJIWidget.framework/DJIWidget -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_dependency_info.dat -o /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget

Undefined symbols for architecture x86_64:
  "_avformat_network_init", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set_int", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_find_encoder", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_encode_audio2", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avio_close_stream", referenced from:
      _djiff_close_stream_input in djiffremux.o
  "_avformat_close_input", referenced from:
      _djiff_close_file_input in djiffremux.o
  "_avformat_open_input", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_bitstream_filter_close", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_strlcpy", referenced from:
      _djiff_open_file_input in djiffremux.o
  "_av_get_bits_per_sample", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_av_rescale_q_rnd", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avcodec_pix_fmt_to_codec_tag", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avformat_free_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      _djiff_close_stream_input in djiffremux.o
  "_avpriv_find_pix_fmt", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avcodec_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_opt_set_defaults", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avformat_alloc_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_free_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_filter_packet in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
      ...
  "_avio_open_stream", referenced from:
      _djiff_open_stream_input in djiffremux.o
  "_av_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avformat_find_stream_info", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_write_trailer", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_rescale_q", referenced from:
      _djiff_mux_choose_output in djiffremux.o
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      _djiff_remux_seek in djiffremux.o
  "_av_guess_format", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_sws_scale", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_av_read_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_demux_frame in djiffremux.o
  "_avcodec_copy_context", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avformat_write_header", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_avformat_alloc_output_context2", referenced from:
      _djiff_remux_init in djiffremux.o
  "_avpriv_get_raw_pix_fmt_tags", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avio_open", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_find_input_format", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avio_close", referenced from:
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
  "_av_bitstream_filter_init", referenced from:
      _djiff_remux_init in djiffremux.o
  "_sws_freeContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter dealloc] in DJIImageCalibrateColorCPUConverter.o
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avformat_new_stream", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_copy", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_init_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avcodec_open2", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_parse2", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avio_open2", referenced from:
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_av_interleaved_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_register_all", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_alloc", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_find_decoder", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_set", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_assign_stream_info in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_free", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_av_seek_frame", referenced from:
      _djiff_remux_seek in djiffremux.o
  "_av_parser_init", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_mallocz", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_av_register_all", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_init in djiffremux.o
      _djiff_remux_getDuration in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_free", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_bitstream_filter_filter", referenced from:
      _djiff_filter_packet in djiffremux.o
  "_sws_getContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avcodec_alloc_context3", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_free", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_free] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_avcodec_decode_video2", referenced from:
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我能做些什么来传递这个拦截器?

xcode dji-sdk
2个回答
1
投票

最终的解决方案是使用的CocoaPods 1.5.3。该解决方案是由OP的作者证实。


0
投票

解决的办法是降级的CocoaPods从1.6.0到1.5.3。

© www.soinside.com 2019 - 2024. All rights reserved.