标签: missing-symbols

Objective-C类参考:未找到符号错误

我已经在这个iPhone应用程序上工作了一段时间,我已经完成了它的工作.我正在扩展的项目是从我在线的subversion存储库下载的,我的教授也给了我访问权限.我不小心没有下载"root"副本或类似的东西,所以我无法对存储库进行任何更改.在我的教师帮助下,我今天下载了根拷贝并将所有类文件添加到其中,以便我可以提交更改.但是,我现在遇到了3个我以前从未见过的奇怪错误:

未定义的符号:

"_OBJC_CLASS _ $ _ mapListViewController",引用自:mapViewController.o中的objc-class-ref-to-mapListViewController

"_OBJC_CLASS_$_mapParser", referenced from: objc-class-ref-to-mapParser in mapViewController.o

"_OBJC_CLASS_$_mapTabViewController", referenced from: objc-class-ref-to-mapTabViewController in mapViewController.o

ld: symbol(s) not found collect2: ld returned 1 exit status

That is the exact error message I am getting. I have not changed any code from the version that was working completely earlier this morning. Any advice? The mapViewController file seems to be what is causing the issue, so here is that as well:

#import "mapViewController.h"
#import "locationDetailViewController.h"
#import "DPUAnnotation.h"
#import …
Run Code Online (Sandbox Code Playgroud)

iphone reference objective-c missing-symbols

9
推荐指数
1
解决办法
3万
查看次数

在仪器7中进行性能分析时缺少符号名称

在我分析iOS 8应用程序时,我没有看到任何符号名称.

如果我在iOS 9的模拟器上运行探查器,一切正常.然后我关闭仪器并切换到iOS 8.4的模拟器,我只能看到引用汇编程序或"不可用"内容的十六进制地址.其他线程未命名,包括系统名在内的所有内容都显示为二进制指针.

在此输入图像描述

仪器找不到dSYM文件,所以我试图将应用程序重新符号化为文件▸符号...然后我选择缺少的符号,并且可以选择找到dSYM文件.

在此输入图像描述

选择dSYM文件后,我收到此消息.

在此输入图像描述

结束了.我也尝试重启PC,重建应用程序,清理项目,删除派生数据,重新打开XCode和仪器,重新索引此帖子中的文件,但它没有任何效果.

谢谢.

PS:有类似的帖子没有解决方案

xcode instruments missing-symbols ios

8
推荐指数
0
解决办法
874
查看次数

Java:在 Map、HashMap 上找不到符号错误

我正在尝试运行此代码:

import java.util.*;

public class ScanReg {
  public Map<Integer, ArrayList<Long>> scanMap = new HashMap<Integer, ArrayList<Long>>();
}
Run Code Online (Sandbox Code Playgroud)

在这个类中:

import java.util.*;

public class NxtStart {
  ScanReg sr = new ScanReg();
}
Run Code Online (Sandbox Code Playgroud)

这不断给我以下错误:

.\ScanReg.java:6: error: cannot find symbol
        public Map<Integer, ArrayList<Long>> scanMap = new HashMap<Integer, Arra
yList<Long>>();
               ^
  symbol:   class Map
  location: class ScanReg
.\ScanReg.java:6: error: cannot find symbol
        public Map<Integer, ArrayList<Long>> scanMap = new HashMap<Integer, Arra
yList<Long>>();
                                                           ^
  symbol:   class HashMap
  location: class ScanReg
2 errors
Run Code Online (Sandbox Code Playgroud)

有人可以告诉我为什么吗?

java missing-symbols

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

了解Xcode构建错误

解决方案:因此Mopub的说明没有提到EventKit并且EventKitUI是必需的.除了MoPub提到的框架之外,还添加了这些项目.

更新: MoPub的说明已更新.


我按照他们的指示将MoPub的完整iOS SDK集成到我的应用程序中.不幸的是,在添加代码和所需的框架后,我得到以下构建错误:

Undefined symbols for architecture i386:

  "_OBJC_CLASS_$_EKAlarm", referenced from:
      objc-class-ref in MRCalendarManager.o
  "_OBJC_CLASS_$_EKEvent", referenced from:
      objc-class-ref in MRCalendarManager.o
  "_OBJC_CLASS_$_EKEventEditViewController", referenced from:
      objc-class-ref in MPInstanceProvider.o
  "_OBJC_CLASS_$_EKEventStore", referenced from:
      objc-class-ref in MPInstanceProvider.o
      objc-class-ref in MRProperty.o
  "_OBJC_CLASS_$_EKRecurrenceDayOfWeek", referenced from:
      objc-class-ref in MRCalendarManager.o
  "_OBJC_CLASS_$_EKRecurrenceEnd", referenced from:
      objc-class-ref in MRCalendarManager.o
  "_OBJC_CLASS_$_EKRecurrenceRule", referenced from:
      objc-class-ref in MRCalendarManager.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v …
Run Code Online (Sandbox Code Playgroud)

compiler-errors missing-symbols ios mopub

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

在macOS High Sierra上使用node-gyp动态链接wfdb库时,不会加载符号

我正在尝试创建一个依赖于WFDB库的动态库(https://www.physionet.org/physiotools/wfdb.shtml).我的c ++代码如下:

#include <stdio.h>
#include <iostream>
#include <vector>
#include <vector>
extern "C" {
    #include <wfdb/wfdb.h>
}

#include "./sample_wfdb.h"

int add(int a, int b){
    return a + b;
}

int read(){
    int i, nsig;
    WFDB_Siginfo* siarray;
    WFDB_Sample* v;
    nsig = isigopen("/data/100s", NULL, 0);
    if (nsig < 1)
        exit(1);
    siarray = (WFDB_Siginfo*)malloc(nsig * sizeof(WFDB_Siginfo));
    nsig = isigopen("data/100s", siarray, nsig);
    for (i = 0; i < nsig; i++)

        v = (WFDB_Sample*)malloc(nsig * sizeof(WFDB_Sample));

    if (v == NULL) {
        fprintf(stderr,"%s: insufficient memory\n"); …
Run Code Online (Sandbox Code Playgroud)

c++ dynamic-linking node.js missing-symbols node-gyp

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

GDB 在 Rust 可执行文件中找不到调试符号

这是带有调试设置的 Cargo.toml:

[package] 
name = "rpolysolve" 
version = "0.1.0" 
authors = ["stiv"]

[dependencies] 
[profile.dev] 
debug = true  
opt-level = 0
Run Code Online (Sandbox Code Playgroud)

正如我从控制台输出中看到的,cargo 没有删除调试符号:

Finished dev [unoptimized + debuginfo] target(s) in 5.66 secs
Run Code Online (Sandbox Code Playgroud)

我已将 gdb-7.9.1-tdm64-2 下载到 windows7 上的 C:\gdb-7.9.1-tdm64-2 文件夹。现在我尝试从项目文件夹中使用以下命令启动它:

C:\gdb-7.9.1-tdm64-2\gdb64\bin\gdb.exe ./target/debug/rpolysolve.exe

GNU gdb (GDB) 7.9.1
... GNU blablabla cut here ...
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./target/debug/rpolysolve.exe...(no debugging symbols found)...done.
Run Code Online (Sandbox Code Playgroud)

如您所见,它说没有找到调试符号,现在我可以设置断点。我怎样才能解决这个问题?

gdb symbols missing-symbols rust

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

R 绘图:除 pdf 之外的设备的字符损坏/丢失

我遇到一个问题,某些图形设备打印丢失的字形框而不是字符。实际上,到目前为止我尝试过的唯一可以渲染字符的设备是 PDF。由于我最近更新了 R 并重建了一堆软件包,我怀疑这可能与它有关。jpeg以下是比较四个设备( 、pdfsvg和 )的输出的屏幕截图png

尽管我第一次在 Rstudio 中使用 rcorr 包遇到该问题,但当我从命令行作为 Rscript 并使用基本箱线图运行时,就会出现该问题。

require(corrplot)
M<-cor(mtcars)
corrplot(M, method="circle")
dev.off()
pdf("test2.pdf")
corrplot(M, method="circle")
dev.off()
png("test2.png")
corrplot(M, method="circle")
dev.off()
jpeg("test2.jpeg")
corrplot(M, method="circle")
dev.off()
svg("test2.svg")
corrplot(M, method="circle")
dev.off()

pdf("test3.pdf")
boxplot(M, method="circle")
dev.off()
png("test3.png")
boxplot(M, method="circle")
dev.off()
jpeg("test3.jpeg")
boxplot(M, method="circle")
dev.off()
svg("test3.svg")
boxplot(M, method="circle")
dev.off()


Run Code Online (Sandbox Code Playgroud)

会议信息:


> sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-generic-linux-gnu (64-bit)
Running under: Clear Linux OS

Matrix products: default
BLAS/LAPACK: /usr/lib64/libopenblas_nehalemp-r0.3.7.so

locale:
 [1] …
Run Code Online (Sandbox Code Playgroud)

plot r character-encoding missing-symbols

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