gpt4 book ai didi

ios - 导入 iAd 时出现错误

转载 作者:行者123 更新时间:2023-11-29 12:45:25 25 4
gpt4 key购买 nike

enter image description here

当我将其添加到我的项目中时:

#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import <QuartzCore/QuartzCore.h>
#import <iAd/iAd.h>

@interface info : UIViewController <UINavigationControllerDelegate,UIImagePickerControllerDelegate,UITextFieldDelegate, UITabBarDelegate,MFMailComposeViewControllerDelegate,UISplitViewControllerDelegate,ADBannerViewDelegate>

我得到一个错误:

Could not build module "iAd"

当我创建一个新项目时,我可以毫无问题地做到这一点!

我的项目有什么问题?

最佳答案

转到项目导航器(xcode 左侧 Pane 中蓝色的应用程序名称),然后是Build Phases,然后打开Link Binary With Libraries 并在您的项目中添加 iAd.framework。

关于ios - 导入 iAd 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23777187/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com