ios – 让MobileVLCKit通过Cocoapods工作

ios – 让MobileVLCKit通过Cocoapods工作,第1张

概述我一直在努力让VLC在我的iOS应用程序中工作一段时间.使用 Cocoapods,MobileVLCKit被导入到我的项目中.当我现在运行应用程序时,它编译没有问题.但是,当我在MobileVLCKit(MobileVLCKit.h,VLCMediaPlayer.h)中包含任何内容时,应用程序崩溃,告诉我没有找到符号. 这是崩溃: Ld /Users/JohnDoe/Library/Develop 我一直在努力让VLC在我的iOS应用程序中工作一段时间.使用 Cocoapods,MobileVLCKit被导入到我的项目中.当我现在运行应用程序时,它编译没有问题.但是,当我在MobileVLCKit(MobileVLCKit.h,VLcmediaPlayer.h)中包含任何内容时,应用程序崩溃,告诉我没有找到符号.
这是崩溃:

Ld /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos/Cameras.app/Cameras normal arm64    cd /Users/JohnDoe/ios-cam-app/iOSCamApp    export IPHONEOS_DEPLOYMENT_TARGET=7.0    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos -LlibrarIEs -LlibrarIEs/FFmpeg -LlibrarIEs/kxmovIE -LlibrarIEs/MBProgressHUD -LlibrarIEs/Nabto -LlibrarIEs/FFmpeg/include -LlibrarIEs/kxmovIE/kxmovIE.bundle -LlibrarIEs/Nabto/include -LlibrarIEs/Nabto/lib -LlibrarIEs/FFmpeg/include/libavcodec -LlibrarIEs/FFmpeg/include/libavdevice -LlibrarIEs/FFmpeg/include/libavfilter -LlibrarIEs/FFmpeg/include/libavformat -LlibrarIEs/FFmpeg/include/libavutil -LlibrarIEs/FFmpeg/include/libswresample -LlibrarIEs/FFmpeg/include/libswscale -L/Users/JohnDoe/ios-cam-app/iOSCamApp/librarIEs/FFmpeg -L/Users/JohnDoe/ios-cam-app/iOSCamApp/librarIEs/Nabto/lib -F/Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos -FFrameworks -F/Users/JohnDoe/ios-cam-app/iOSCamApp -fileList /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/DeBUG-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras.linkfileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -lPods-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lstdc++.6.0.9 -lc++ -liconv.2.4.0 -lbz2 -lz -framework MediaPlayer -framework CoreAudio -framework Crashlytics -framework AudioToolBox -framework Accelerate -framework OpenGLES -lnabto_static_external -framework CoreVIDeo -framework CoreMedia -framework CFNetwork -framework AVFoundation -lavutil -lavfilter -lPods -lavdevice -lswscale -lnabto_clIEnt_API_static -framework Fabric -lavformat -lswresample -lavcodec -framework QuartzCore -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/DeBUG-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras_dependency_info.dat -o /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos/Cameras.app/CamerasUndefined symbols for architecture arm64:  "_OBJC_CLASS_$_VLcmediaPlayer",referenced from:      objc-class-ref in FirstVIEwController.old: symbol(s) not found for architecture arm64clang: error: linker command Failed with exit code 1 (use -v to see invocation)

当我通过可可豆荚安装VLC时,我收到了这个警告:

The `iOSCamApp [Release]` target overrIDes the `OTHER_LDFLAGS` build setting defined in `../Pods/Target Support files/Pods-iOSCamApp/Pods-iOSCamApp.release.xcconfig'. This can lead to problems with the CocoaPods installation    - Use the `$(inherited)` flag,or    - Remove the build settings from the target.

当我添加$(继承)标志并尝试构建时,我得到以下崩溃:

Ld /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos/Cameras.app/Cameras normal arm64    cd /Users/JohnDoe/ios-cam-app/iOSCamApp    export IPHONEOS_DEPLOYMENT_TARGET=7.0    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos -LlibrarIEs -LlibrarIEs/FFmpeg -LlibrarIEs/kxmovIE -LlibrarIEs/MBProgressHUD -LlibrarIEs/Nabto -LlibrarIEs/FFmpeg/include -LlibrarIEs/kxmovIE/kxmovIE.bundle -LlibrarIEs/Nabto/include -LlibrarIEs/Nabto/lib -LlibrarIEs/FFmpeg/include/libavcodec -LlibrarIEs/FFmpeg/include/libavdevice -LlibrarIEs/FFmpeg/include/libavfilter -LlibrarIEs/FFmpeg/include/libavformat -LlibrarIEs/FFmpeg/include/libavutil -LlibrarIEs/FFmpeg/include/libswresample -LlibrarIEs/FFmpeg/include/libswscale -L/Users/JohnDoe/ios-cam-app/iOSCamApp/librarIEs/FFmpeg -L/Users/JohnDoe/ios-cam-app/iOSCamApp/librarIEs/Nabto/lib -F/Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos -FFrameworks -F/Users/JohnDoe/ios-cam-app/iOSCamApp -fileList /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/DeBUG-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras.linkfileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -lPods-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -ObjC -lPods-AFNetworking -lbz2 -liconv -lstdc++ -lxml2 -lz -framework AVFoundation -framework AudioToolBox -framework CFNetwork -framework CoreGraphics -framework CoreText -framework MobileCoreServices -framework MobileVLCKit -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lstdc++.6.0.9 -lc++ -liconv.2.4.0 -lbz2 -lz -framework MediaPlayer -framework CoreAudio -framework Crashlytics -framework AudioToolBox -framework Accelerate -framework OpenGLES -lnabto_static_external -framework CoreVIDeo -framework CoreMedia -framework CFNetwork -framework AVFoundation -lavutil -lavfilter -lPods -lavdevice -lswscale -lnabto_clIEnt_API_static -framework Fabric -lavformat -lswresample -lavcodec -framework QuartzCore -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/DeBUG-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras_dependency_info.dat -o /Users/JohnDoe/library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/DeBUG-iphoneos/Cameras.app/Camerasld: framework not found MobileVLCKitclang: error: linker command Failed with exit code 1 (use -v to see invocation)

有谁知道该怎么办?我尝试了很多东西,似乎没有任何帮助.自动完成能够读取VLC内容并在Xcode中为我自动填充,因此框架应该没问题.

解决方法 @H_419_32@

Undefined symbols for architecture arm64:

这似乎是个问题.你正在为模拟器进行编译,显然没有为它编译MobileVLCKit. ld是抱怨这个的链接器.你试过在设备上运行吗?

检查您的项目和MobileVLCKit在哪些架构上处于活动状态.

总结

以上是内存溢出为你收集整理的ios – 让MobileVLCKit通过Cocoapods工作全部内容,希望文章能够帮你解决ios – 让MobileVLCKit通过Cocoapods工作所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1039124.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存