简体   繁体   English

编译包含iOS 8 App Extension的Xcode项目时生成错误

[英]Build error when compiling Xcode project containing iOS 8 App Extension

I'm currently trying to build an application that contains an iOS 8 app extension, but am running into a bit of an issue. 我目前正在尝试构建包含iOS 8应用扩展程序的应用程序,但遇到了一个问题。 Whenever I try to build and run (whether on device or in simulator), I get the following build error: 每当我尝试构建和运行(无论是在设备上还是在模拟器中)时,都会出现以下构建错误:

Ld /Users/Cory/Library/Developer/Xcode/DerivedData/Lockdown-aklxfnafpdlclwhfylbcjtzskpmb/Build/Products/Debug-iphoneos/Lockdown\ Auth.appex/Lockdown\ Auth normal arm64
    cd "/Users/Cory/Documents/Programming/Cocoa App/Lockdown/Lockdown"
    export IPHONEOS_DEPLOYMENT_TARGET=8.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.0.sdk -L/Users/Cory/Library/Developer/Xcode/DerivedData/Lockdown-aklxfnafpdlclwhfylbcjtzskpmb/Build/Products/Debug-iphoneos -F/Users/Cory/Library/Developer/Xcode/DerivedData/Lockdown-aklxfnafpdlclwhfylbcjtzskpmb/Build/Products/Debug-iphoneos -filelist /Users/Cory/Library/Developer/Xcode/DerivedData/Lockdown-aklxfnafpdlclwhfylbcjtzskpmb/Build/Intermediates/Lockdown.build/Debug-iphoneos/Lockdown\ Auth.build/Objects-normal/arm64/Lockdown\ Auth.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -dead_strip -ObjC -framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/PrivateFrameworks/PlugInKit.framework/PlugInKit -e _NSExtensionMain -fobjc-arc -fobjc-link-runtime -fapplication-extension -miphoneos-version-min=8.0 -Xlinker -dependency_info -Xlinker /Users/Cory/Library/Developer/Xcode/DerivedData/Lockdown-aklxfnafpdlclwhfylbcjtzskpmb/Build/Intermediates/Lockdown.build/Debug-iphoneos/Lockdown\ Auth.build/Objects-normal/arm64/Lockdown\ Auth_dependency_info.dat -o /Users/Cory/Library/Developer/Xcode/DerivedData/Lockdown-aklxfnafpdlclwhfylbcjtzskpmb/Build/Products/Debug-iphoneos/Lockdown\ Auth.appex/Lockdown\ Auth

ld: framework not found /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/PrivateFrameworks/PlugInKit.framework/PlugInKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is with no additional code inside of the extension target, simply creating an extension, then building gives me this error every time. 在扩展目标内部没有任何其他代码,只需创建一个扩展,然后每次构建都会给我这个错误。

Has anyone else seen this issue before? 其他人以前见过这个问题吗? I'm not doing anything out of the ordinary for this to be happening. 对于发生这种情况,我没有做任何不寻常的事情。

检查您今天的扩展程序的“ 构建设置”>“其他链接器标志” Xcode可能已经从您现有的应用程序复制了该文件,应为空。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为 iOS 编译 Flutter 项目时的 Xcode 构建问题 - Xcode build issue when compiling Flutter project for iOS 在xCode 5项目中使用iOS6 If语句时生成错误 - Build error when using iOS6 If Statement in xCode 5 Project 编译构建失败时出现xcode错误 - xcode error when compiling build failed 调试/运行iOS8 App Today Extension时,Xcode将多个包含应用程序安装到设备上 - Xcode installs multiple containing apps onto device when debugging/running iOS8 App Today Extension 有人为iOS编译语音演示应用程序时遇到Xcode构建错误吗? - Does anyone experience Xcode build errors when compiling the phonetic demo app for iOS? 在Xcode中编译应用程序时出现无法解决的链接器错误 - Unsolvable linker error when compiling app in Xcode 在 Z8F8EFCE3A06CE9346C794ED97CCB6D05 中编译 ios 项目时找不到 c++ header 文件 - c++ header file not found when compiling ios project in xcode Pod 更新后编译时出现错误“'sharedApplication' 不可用:iOS 上不可用(应用程序扩展)...” - Error “'sharedApplication' is unavailable: not available on iOS (App Extension)…” when compiling after pod update Xcode 构建完成。 无法构建 iOS 应用程序 - Flutter 项目 - Xcode build done. Failed to build iOS app - Flutter project Xcode swift iOS 尝试构建项目时出现“usr/bin/python 没有这样的文件或目录”错误 - Xcode swift iOS project gives "usr/bin/python no such file or directory" error when try to build project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM