문제

iOS 프로젝트를 위해 Wikitude SDK를 구현하고 있습니다.이제 튜토리얼에서 단계별로 단계별로 표시되고 나는 그 다음에 있습니다.ArchitectWorld를 추가하는 옵션이 있습니다.해당 폴더 옵션에 추가 할 내용을 얻지 못합니다.표시된 예에서 .js .css 및 .html 파일을 가져 가야합니다.나는 조금 혼란스러워하고있다.이제 코드를 추가했습니다.그러나 유익한 것을 얻지 못한다.Arworld 작업을 수행하기 위해 추가 해야하는 코드는 어떤 코드가 무엇인지 뭐야?나는 iPod 5 세대에서 나와 있습니다.그것의 나에게 메시지를 보여주고 화면이 비어 있습니다.

메시지는 This device is not capable of running ARchitect Worlds. Requirements are: iOS 6 or higher, iPhone 3GS or higher, iPad 2 or higher. Note: iPod Touch 4th and 5th generation are only supported in WTAugmentedRealityMode_IR.

내 코드는

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.

    NSLog(@"here it comes");
    if ( [WTArchitectView isDeviceSupportedForAugmentedRealityMode:WTAugmentedRealityMode_Both] ) { // 1

        NSLog(@"not entering");
        self.architectView = [[WTArchitectView alloc] initWithFrame:self.view.bounds motionManager:nil augmentedRealityMode:WTAugmentedRealityMode_Both];

       // [self.architectView setLicenseKey:@"MY-LICENSE-KEY"]; // 2
        [self.architectView setLicenseKey:nil];

        NSURL *architectWorldUrl = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html"];
        [self.architectView loadArchitectWorldFromUrl:architectWorldUrl];

        [self.view addSubview:self.architectView]; // 3
    }

    else {



        NSLog(@"This device is not capable of running ARchitect Worlds. Requirements are: iOS 6 or higher, iPhone 3GS or higher, iPad 2 or higher. Note: iPod Touch 4th and 5th generation are only supported in WTAugmentedRealityMode_IR.");
    }

}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];


    [self.architectView start];
    if ( [self.architectView isRunning] ) {

       NSLog(@"ARchitect is running with version: %@", [WTArchitectView versionNumber]);
    }else {
       NSLog(@"WTARchitectView wasn't able to start. Please check e.g. the -ObjC linker flag in your project settings.");
    }
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)startAR
{
    if([self.architectView isRunning])
    {

        NSLog(@"architect view is working");
        [self.architectView start];
    }
    else{
         NSLog(@"architect view is NOT working");
    }
}
-(void)stopAR
{
    if([self.architectView isRunning])
    {
        [self.architectView stop];
    }


}
.

도움이 필요합니다.고마워.

도움이 되었습니까?

해결책

나는 같은 문제가있었습니다.iPhone에서 프로젝트를 실행하면 잘 작동했습니다.iPod을 사용하지 마십시오.

또한 의 모든 단계를 확인해야합니다이 링크 가 올바르게 수행되었습니다.

특히 모두 프로젝터 및 대상 탭에서 빌드 설정을 구성합니다

Wikitude SDK는 -OBJC 링커 플래그가 설정되어 있음을 필요로합니다.링커 플래그는 프로젝트 빌드 설정 탭에서 플래그를 조정할 수 있습니다.찾아서 다른 링커 플래그가 아직 존재하지 않는 경우 새 항목을 추가합니다.

여기에 이미지 설명

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top