小编kas*_*9us的帖子

错误:地址不包含指向目标文件中某个部分的部分

嗨,我在这里搜索了论坛,但没有找到帮助,所以我发布新的.这是场景,我在主rootviewcontroller中创建一个mfmailcomposeviewcontroller,我通过调用presentviewcontroller来显示它但是当它被解除时我得到这个错误:

error: address doesn't contain a section that points to a section in a object file
Run Code Online (Sandbox Code Playgroud)

我正在使用的代码如下:

-(void) mailButtonTapped
{

if ([MFMailComposeViewController canSendMail]) {

    mailViewController_ = [[MFMailComposeViewController alloc] init];
    mailViewController_.mailComposeDelegate = self;
    [mailViewController_ setSubject:@"Try ..."];
    [mailViewController_ setMessageBody:@"Hey I just tried ..." isHTML:NO];
    NSData *videoData = [NSData dataWithContentsOfURL:movieURL_];
    [mailViewController_ addAttachmentData:videoData mimeType:@"video/quicktime" fileName:@"Video.mov"];
    [self presentViewController:mailViewController_ animated:YES completion:nil];

}

else {

    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Sharing Not Possible" message:@"Configure your mail to send the mail" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil];
    [alertView show];
    [alertView …
Run Code Online (Sandbox Code Playgroud)

objective-c

6
推荐指数
2
解决办法
6188
查看次数

Flutter:使用 EventChannel 的 PlatformException

我试图EventChannel在我的 flutter 应用程序中实现,但收到以下错误:

\n\n
\n

\xe2\x95\x90\xe2\x95\x90\xe2\x95\xa1 服务库捕获异常\n \xe2\x95\x9e\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\ xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\ x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\ x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\ xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\ x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\ x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\ xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90

\n\n

在通道 com.checkin.beacon.entered.beacons 上激活平台流时引发以下 PlatformException:

\n\n

PlatformException(错误,指定为非 null 的参数为 null:\n 方法 kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull,\n 参数 args,null)

\n
\n\n

这是我的代码:

\n\n

颤振侧:

\n\n
static const _enteredBeaconsEvent = const EventChannel("com.checkin.beacon.entered.beacons");\n\nstatic void initialize () {\n    _enteredBeaconsEvent.receiveBroadcastStream().listen((data) {\n      print("data= $data");\n    });\n}\n
Run Code Online (Sandbox Code Playgroud)\n\n

在 Android Native (Kotlin) 上,代码为:

\n\n
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {\n        GeneratedPluginRegistrant.registerWith(flutterEngine)\n\n        EventChannel(flutterEngine.dartExecutor.binaryMessenger, "com.checkin.beacon.entered.beacons").setStreamHandler(object : EventChannel.StreamHandler {\n            override fun onListen(args: Any, events: EventSink) {\n                Log.d(TAG, "adding …
Run Code Online (Sandbox Code Playgroud)

android flutter

6
推荐指数
1
解决办法
3952
查看次数

Unity3D - 解析迁移

我有一个 Unity3D 游戏,目前托管在 parse 上。我正在将它迁移到 mongoDB 和 Heroku。我已经按照这个链接解析迁移

虽然它适用于 iOS 并且我已经在 iOS 上测试过它,但我正在 Unity 中执行相同的步骤。

我在 Unity3D 中使用的代码是:

ParseClient.Initialize(new ParseClient.Configuration {
            ApplicationId = "",
            Server = "",
            WindowsKey = ""
        });
Run Code Online (Sandbox Code Playgroud)

但什么也没有发生。如果我在 iOS 上像这样初始化它,它就可以完美运行。但它不适用于 Unity。任何帮助将不胜感激。谢谢

heroku unity-game-engine mongodb ios parse-platform

5
推荐指数
1
解决办法
145
查看次数

在不为 Intent 设置目标包的情况下调用应用内计费服务

我刚刚收到一封来自 Google Play 的电子邮件,内容为:“我们检测到您在这封电子邮件末尾列出的应用程序正在调用应用程序内计费服务,而没有为该意图设置目标包。这可以使恶意程序包绕过 Play 商店计费系统并访问尚未购买的项目。”

这个游戏是使用Unity3D开发的。我对原生 Android 没有任何原生知识。我应该在 Unity3D 中做什么才能解决这个问题?谢谢

android unity-game-engine android-security

5
推荐指数
0
解决办法
273
查看次数

无法在Xcode 5中添加编译器标志

您好我最近安装了Xcode 5,但无法添加编译器标志.我想为自动引用计数添加编译器标志但是当我去构建阶段=>编译sources => .m文件并双击它或在选择它时按Enter键时,不会出现输入编译器标志的弹出窗口.

如何解决这个问题?谢谢

compiler-flags xcode5

1
推荐指数
1
解决办法
6001
查看次数