question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[7.0.5] Error: "no known class method" while compiling library

See original GitHub issue

Error as below /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:90:17: error: no known class method for selector ‘setMixedAudience:’ [FBAdSettings setMixedAudience:isDirected]; ^~~~~~~~~~~~~~~~ /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:135:19: error: no known class method for selector ‘setAdvertiserTrackingEnabled:’ [FBAdSettings setAdvertiserTrackingEnabled:enabled]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:141:17: error: no known class method for selector ‘setMixedAudience:’ [FBAdSettings setMixedAudience:_isChildDirected]; ^~~~~~~~~~~~~~~~ /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:150:17: error: no known class method for selector ‘setMixedAudience:’ [FBAdSettings setMixedAudience:NO]; ^~~~~~~~~~~~~~~~ 4 errors generated.

Upgrading from 6.3.1 to 7.0.5. Had run cd ios && pod install. Is it only me getting this error?

using react 16.13.1 react-native 0.63.3 Deployment Target is version 9.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
kkusanagicommented, Apr 14, 2021

report.txt

and my package.json

{
  "name": "tootitoo",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@invertase/react-native-apple-authentication": "^1.0.0",
    "@react-native-community/async-storage": "^1.8.1",
    "@react-native-community/clipboard": "^1.2.1",
    "@react-native-community/datetimepicker": "^3.4.3",
    "@react-native-community/geolocation": "^2.0.2",
    "@react-native-community/masked-view": "^0.1.7",
    "@react-native-community/picker": "^1.8.1",
    "@react-native-community/push-notification-ios": "^1.8.0",
    "@react-native-firebase/analytics": "^7.4.2",
    "@react-native-firebase/app": "^8.3.1",
    "@react-native-firebase/auth": "^9.0.0",
    "@react-native-firebase/crashlytics": "^8.3.4",
    "@react-native-firebase/dynamic-links": "^7.4.3",
    "@react-native-firebase/firestore": "^7.5.3",
    "@react-native-firebase/functions": "^7.3.2",
    "@react-native-firebase/messaging": "^7.7.3",
    "@react-native-firebase/storage": "^7.3.3",
    "@react-navigation/bottom-tabs": "^5.2.4",
    "@react-navigation/material-top-tabs": "^5.3.4",
    "@react-navigation/native": "^5.1.3",
    "@react-navigation/stack": "^5.2.8",
    "@sayem314/react-native-keep-awake": "^1.0.3",
    "bad-words": "^3.0.3",
    "chinese-to-pinyin": "^1.3.1",
    "country-currency-map": "^2.1.7",
    "geofirestore": "^3.3.1",
    "hermes-engine": "^0.7.1",
    "i18n-js": "^3.5.1",
    "jsc-android": "^241213.1.0",
    "lodash.memoize": "^4.1.2",
    "moment": "^2.24.0",
    "prop-types": "^15.7.2",
    "react": "16.13.1",
    "react-native": "0.63.3",
    "react-native-audio": "^4.3.0",
    "react-native-autolink": "^1.8.1",
    "react-native-calendar-events": "^1.7.3",
    "react-native-calendars": "^1.212.0",
    "react-native-camera": "^3.6.0",
    "react-native-drag-sort": "^2.3.9",
    "react-native-elements": "^3.3.2",
    "react-native-fbads": "^7.0.5",
    "react-native-fbsdk": "^3.0.0",
    "react-native-geocoder-reborn": "^0.8.0",
    "react-native-geolocation-service": "^3.1.0",
    "react-native-gesture-handler": "^1.6.1",
    "react-native-google-signin": "^2.0.0",
    "react-native-image-crop-picker": "^0.35.1",
    "react-native-image-pan-zoom": "^2.1.12",
    "react-native-image-picker": "^1.1.0",
    "react-native-image-resizer": "^1.1.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.3",
    "react-native-localize": "^1.3.3",
    "react-native-map-clustering": "^3.0.6",
    "react-native-maps": "0.25.0",
    "react-native-mime-types": "^2.2.1",
    "react-native-modal-datetime-picker": "^7.6.0",
    "react-native-orientation-locker": "^1.1.6",
    "react-native-permissions": "^2.0.2",
    "react-native-push-notification": "^6.1.3",
    "react-native-qrcode-svg": "^5.2.0",
    "react-native-reanimated": "^1.7.1",
    "react-native-responsive-fontsize": "^0.2.2",
    "react-native-safe-area-context": "^0.7.3",
    "react-native-screens": "^2.4.0",
    "react-native-snap-carousel": "^3.9.0",
    "react-native-sound": "^0.11.0",
    "react-native-svg": "^9.9.7",
    "react-native-swiper": "^1.6.0",
    "react-native-tab-view": "^2.15.2",
    "react-native-twitter-signin": "^1.1.1",
    "react-native-vector-icons": "^7.0.0",
    "realm": "^6.0.1",
    "rn-fetch-blob": "^0.11.2"
  },
  "devDependencies": {
    "@babel/core": "7.10.2",
    "@babel/runtime": "7.10.2",
    "@react-native-community/eslint-config": "0.0.5",
    "babel-jest": "^25.1.0",
    "eslint": "6.8.0",
    "jest": "^25.1.0",
    "metro-react-native-babel-preset": "0.59.0",
    "react-test-renderer": "16.13.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

I will try create new fresh project instead of upgrade from old files and check for the issue again.

0reactions
beqramocommented, Nov 29, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

No Known Class Method for Selector 'valueWithCGPoint'
When the compiler warns you that: No visible @interface for X. Chances are you're just forgetting to import the header file that contains...
Read more >
Fix list for WebSphere MQ Version 7.0 - IBM
Security APAR APAR Description ✓ IV69190 CVE‑2014‑4771 IV70568 Updates to the versions of GSKIT8 shipped with MQ ✓ IV73860 CVE‑2015‑2013
Read more >
FortiOS Release Notes - Fortinet Documentation Library
The following issues have been fixed in version 7.0.5. To inquire about a particular bug, please contact Customer Service & Support.
Read more >
Hibernate Validator 8.0.0.Final - Jakarta Bean Validation ...
Relaxation of requirements for method validation in class hierarchies; 12.4. ... When validating byte code enhanced objects, property level ...
Read more >
Chapter 2. Creating C or C++ Applications Red Hat Enterprise ...
When the compiler transforms source code to object code, ... A special file name convention is used for libraries: a library known as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found