Skip to content

feat(Archive ObjC GooglePlacesDemos): API key via Secrets.xcconfig + fix Pods [6/8] - #33

Open
iHackSubhodip wants to merge 1 commit into
SB/feature/places-demos-secretsfrom
SB/feat/objc-demos-secrets
Open

feat(Archive ObjC GooglePlacesDemos): API key via Secrets.xcconfig + fix Pods [6/8]#33
iHackSubhodip wants to merge 1 commit into
SB/feature/places-demos-secretsfrom
SB/feat/objc-demos-secrets

Conversation

@iHackSubhodip

@iHackSubhodip iHackSubhodip commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

What

  • Fixes an orphaned CocoaPods setup: adds GooglePlacesDemos to the Archive
    Podfile + a shared GooglePlaces-Objc.xcworkspace so pod install wires it
    (it was Pods-wired in the pbxproj but missing from the Podfile → couldn't build).
  • Deletes tracked SDKDemoAPIKey.h; DemoAppDelegate.m reads PLACES_API_KEY from
    the bundle via objectForInfoDictionaryKey:, fail-closed (NSException).
  • Adds tracked GooglePlacesDemos.xcconfig wrapper (#include? "Secrets.xcconfig").
  • Info.plist maps PLACES_API_KEY$(PLACES_API_KEY).
  • project.pbxproj: wires the wrapper as a project-level base configuration.

Why

When

  • Series [6/8]; first of the two archived Objective-C apps.

Setup / testing

  • cd Archive/GooglePlaces-Objc && pod install; create
    GooglePlacesDemos/Secrets.xcconfig with PLACES_API_KEY = ….
  • Build from GooglePlaces-Objc.xcworkspace → launches; remove Secrets → builds, fail-closed.
  • plutil -lint on project.pbxproj passes.

Test

Screenshot 2026-08-07 at 6 59 00 PM
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-08-07.at.18.57.53.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant