Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode Warning non-portable path to file appcenter-prefix.pch #1788

Closed
1 task
fylock opened this issue Sep 24, 2019 · 8 comments
Closed
1 task

Xcode Warning non-portable path to file appcenter-prefix.pch #1788

fylock opened this issue Sep 24, 2019 · 8 comments
Labels

Comments

@fylock
Copy link

fylock commented Sep 24, 2019

Description

Compiling on Xcode 10.3 with min iOS 10 SDK and CocoaPods throws a warning: non-portable path to file '"AppCenter/appcenter-prefix.pch"'; specified path differs in case from file name on disk [-Wnonportable-include-path]

Please describe the issue you are facing or a feature you would like to be added to the SDK.

Repro Steps

Please list the steps used to reproduce your issue.

  1. Consume iOS SDK via CocoaPods
  2. Compile on Xcode 10.3
  3. Observe File Path Warning.

Details

  1. Which SDK version are you using?
    • e.g. 1.5.0
  2. Which OS version did you experience the issue on?
    • e.g. iOS 10, iOS 11, iOS 12, iOS 13
  3. Which Cocoapods version are you using (run pod --version)?
    • e.g. 1.7.5
  4. What device version did you see this error on? Were you using an emulator or a physical device?
    • e.g. iPhone X physical device, iPhone XR emulator
  5. What language are you using?
    • Objective C
    • [X ] Swift
  6. What third party libraries are you using?
  7. Please enable verbose logging for your app using MSAppCenter.setLogLevel(.verbose) before your call to MSAppCenter.start(...) for Swift, or [MSAppCenter setLogLevel:MSLogLevelVerbose] before [MSAppCenter start: ...] for Objective C and include the logs here:
@annakocheshkova
Copy link

Hi there @fylock! I made a fresh install on an empty app with Xcode 10.3 and deployment target set to 10. I also built choosing 10.3 Simulator and I didn't encounter this warning. Does your project have some specific configuration I should know about? An .xcconfig will be useful.

@fylock
Copy link
Author

fylock commented Sep 25, 2019

Ah yes, one thing I left out from my original post, is that I am ingesting the native iOS SDK using the ReactNative AppCenter SDK. So it is possible the ReactNative SDK is influencing the build path for the "appcenter-prefix.pch" file. Any chance you could update your empty app to ingest the iOS SDK using the ReactNative AppCenter SDK?

@annakocheshkova
Copy link

annakocheshkova commented Sep 26, 2019

@fylock I have seen this warning dealing with another RN issue today. Any chance you are using use_frameworks! in your podfile? If that is correct, please take a look at this thread

@fylock
Copy link
Author

fylock commented Sep 26, 2019

@annakocheshkova I do not have use_frameworks! in my Podfile.

Attaching a section of my Podfile below for reference. You should be able to easily repro this by creating a new RN60 project and use auto linking for RN AppCenter.

Screen Shot 2019-09-26 at 10 55 11 AM

@annakocheshkova
Copy link

annakocheshkova commented Sep 27, 2019

@fylock using this on a new project, when use_frameworks is present, I see this error, when I remove it and clean the build then build again - it disappears.

@AnastasiaKubova
Copy link

AnastasiaKubova commented Oct 2, 2019

Hey. Looks like this is not reproduced on our side. I am closing this issue. Feel free to reopen if you have more info.

@yvbeek
Copy link

yvbeek commented Dec 9, 2019

I can't seem to get rid of this Xcode warning:

/<built-in>:1:10: Non-portable path to file '"/Users/x/Projects/MyApp
  /ios/Pods/Target Support Files/AppCenter/appcenter-prefix.pch"';
  specified path differs in case from file name on disk

The contents of my package.json:

{
  "name": "MyApp",
  "private": true,
  "scripts": {
    "start": "react-native start",
    "postinstall": "npx jetify && pod install --project-directory=ios"
  },
  "dependencies": {
    "@react-native-community/async-storage": "^1.6.3",
    "@react-native-community/netinfo": "^5.0.0",
    "@react-native-firebase/analytics": "^6.2.0",
    "@react-native-firebase/app": "^6.2.0",
    "@react-native-firebase/crashlytics": "^6.2.0",
    "appcenter": "^2.6.0",
    "appcenter-analytics": "^2.6.0",
    "base-64": "^0.1.0",
    "expo-av": "8.0.0",
    "expo-secure-store": "8.0.0",
    "expo-web-browser": "8.0.0",
    "lodash.debounce": "^4.0.8",
    "prop-types": "^15.7.2",
    "query-string": "^6.9.0",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-code-push": "^5.7.0",
    "react-native-extended-stylesheet": "^0.12.0",
    "react-native-gesture-handler": "^1.5.2",
    "react-native-in-app-utils": "^6.0.2",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-orientation-locker": "^1.1.7",
    "react-native-reanimated": "^1.4.0",
    "react-native-render-html": "^4.1.2",
    "react-native-screens": "^1.0.0-alpha",
    "react-native-search-box": "^0.0.19",
    "react-native-sideswipe": "^1.5.0",
    "react-native-unimodules": "0.7.0",
    "react-native-vector-icons": "^6.6.0",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^1.10.3",
    "react-navigation-tabs": "^2.6.2",
    "uuid-js": "^0.7.5"
  },
  "devDependencies": {
    "@babel/core": "^7.7.5",
    "@babel/runtime": "^7.7.6",
    "@react-native-community/eslint-config": "^0.0.5",
    "@types/jest": "^24.0.23",
    "@types/react-native": "^0.60.24",
    "@types/react-native-vector-icons": "^6.4.4",
    "@types/react-test-renderer": "16.9.1",
    "@typescript-eslint/eslint-plugin": "^2.10.0",
    "@typescript-eslint/parser": "^2.10.0",
    "babel-jest": "^24.9.0",
    "babel-plugin-module-resolver": "^3.2.0",
    "eslint": "^6.7.2",
    "eslint-plugin-react": "^7.17.0",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.57.0",
    "react-test-renderer": "16.9.0",
    "typescript": "^3.7.3"
  },
  "jest": {
    "preset": "react-native",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  }
}

The contents of my Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
inhibit_all_warnings!

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'

project 'MyApp.xcodeproj'

target 'MyApp' do
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  # CodePush for over-the-air updates
  pod 'CodePush', :path => '../node_modules/react-native-code-push'

  # Set Crashlytics version, this is a newer version than in the Firebase package
  $CrashlyticsSDKVersion = '3.14.0'
  $FabricSDKVersion = '1.10.2'
  $FirebaseSDKVersion = '6.13.0'

  use_native_modules!
  use_unimodules!(exclude: [
    'unimodules-barcode-scanner-interface',
    'unimodules-face-detector-interface',
    'unimodules-sensors-interface',
    'unimodules-task-manager-interface'
  ])
end

post_install do |installer|
  installer.pods_project.main_group.tab_width = '2';
  installer.pods_project.main_group.indent_width = '2';

  # Set the deployment target of all pods
  installer.target_installation_results.pod_target_installation_results
    .each do |pod_name, target_installation_result|
    target_installation_result.native_target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
    end
  end
end

@dhei
Copy link
Member

dhei commented Dec 10, 2019

Hi @yvbeek,

Do you mind open a new Issue at https://github.com/Microsoft/AppCenter-SDK-React-Native repo. This issue is originally opened for iOS SDK. Your issue would be better tracked in RN SDK repo.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants