Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Can't compile project on IOS and Android #63

@bin-umar

Description

@bin-umar

Can't compile package, neither on Android, neither on IOS.

Here is Android result:

> Task :react-native-3d-model-view:compileDebugJavaWithJavac FAILED
....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/jahongir-ottr/ottrfi/ottr/node_modules/expo-secure-store/android/src/main/java/expo/modules/securestore/SecureStoreModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:8: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:9: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
                                 ^
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:80: error: cannot find symbol
  public void receiveCommand(RN3DView view, int commandType, @Nullable ReadableArray args) {
                                                              ^
  symbol:   class Nullable
  location: class RN3DViewManager
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:105: error: cannot find symbol
  @Nullable
   ^
  symbol:   class Nullable
  location: class RN3DViewManager
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/org/andresoviedo/app/model3D/services/collada/loader/ColladaLoader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors

On IOS:

In file included from /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelView.m:1:
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelView.h:7:9: fatal error: 'RCT3DModel-Swift.h' file not found
#import "RCT3DModel-Swift.h"
        ^~~~~~~~~~~~~~~~~~~~
1 error generated.

warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase '[CP-User] [RNFB] Core Configuration' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase '[CP-User] [RNFB] Crashlytics Configuration' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')

** BUILD FAILED **


The following build commands failed:
        CompileC /Users/jahongir-ottr/Library/Developer/Xcode/DerivedData/ottr-fobwyqlpododpedhojfvxigrtxid/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT3DModel.build/Objects-normal/x86_64/RCT3DARModelViewManager.o /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelViewManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT3DModel' from project 'Pods')
        CompileC /Users/jahongir-ottr/Library/Developer/Xcode/DerivedData/ottr-fobwyqlpododpedhojfvxigrtxid/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT3DModel.build/Objects-normal/x86_64/RCT3DARModelView.o /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT3DModel' from project 'Pods')
(2 failures)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions