Xcode更新后出现虚幻错误:PCH文件使用了不再支持的旧PCH格式

时间:2019-04-19 05:20:10

标签: xcode file compiler-errors unreal-engine4 pch

所以我最近才将Xcode(不太确定这是否引起了问题)更新为版本10.2。当我在Unreal Engine 4版本4.21.2中编译代码时,它给了我这个错误。 “ PCH文件使用了不再支持的旧PCH格式”我能做些什么来解决它?

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Engine/TriggerVolume.h"
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "OpenDoor.generated.h"



UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class BUILDINGESCAPE_API UOpenDoor : public UActorComponent
{
    GENERATED_BODY()

public: 
    // Sets default values for this component's properties
    UOpenDoor();

protected:
    // Called when the game starts
    virtual void BeginPlay() override;

public:
    void OpenDoor();
    void CloseDoor();

    // Called every frame
    virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;



private:
    UPROPERTY(EditAnywhere)
    float OpenAngle = -90.0f;

    UPROPERTY(EditAnywhere)
    ATriggerVolume* PressurePlate;

    UPROPERTY(EditAnywhere)
    float DoorCloseDelay = 1.f;

    float LastDoorOpenTime;

    float GetTotalMassOfActorsOnPlate();
    //UPROPERTY(EditAnywhere)
    //AActor* ActorThatOpens; //Pawn inherits from AActor
    AActor* Owner; //The owning door
    void FindPressurePlate();`enter code here`

};

我希望游戏可以编译到我的较新版本,实际结果游戏不能编译。

0 个答案:

没有答案